Thanks a lot as I have figured out that the problem was using the != assignment, Should have used !userInput equals(exit).
Also, I do want to apologise to all the viewers, especially jps for not...
Type: Posts; User: xdx
Thanks a lot as I have figured out that the problem was using the != assignment, Should have used !userInput equals(exit).
Also, I do want to apologise to all the viewers, especially jps for not...
Hello,
Thanks for your insight. The only problem my program has is the while loop. The program should keep on asking userInput and calculate uppercase and lowercase characters until the user types...
String userInput;
int lowerCase = 0, upperCase = 0;
Scanner scan = new Scanner (System.in);
System.out.println("Enter a word (type exit to finish) : ");
userInput =...