Guest User

Untitled

a guest
Jan 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // Read in userInput
  2. try {
  3. userInput = (char)System.in.read();
  4. String up = String.valueOf(userInput);
  5. up = up.toUpperCase();
  6. } catch (IOException e) {
  7. // TODO Auto-generated catch block
  8. e.printStackTrace();
  9. }
  10. if(userInput=='N')
  11. {
  12. break;
  13. }
  14. else
  15. {
  16. counter=0;
Add Comment
Please, Sign In to add comment