Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Read in userInput
- try {
- userInput = (char)System.in.read();
- String up = String.valueOf(userInput);
- up = up.toUpperCase();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- if(userInput=='N')
- {
- break;
- }
- else
- {
- counter=0;
Add Comment
Please, Sign In to add comment