This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am teaching myself Java, I am brand new to Java, my friend recommend buy a book from amazon.
I am struck where it says I am suppose to change case.
Here is what i like to do. when a user enter a number it calculate and display and it ask do you want to continue I want the user to choose either lower or upper case Y or y or N or n.
In order to get the most out of people in this community, you need to TellTheDetails, possibly with some code snippet that reflects what you are trying to do. Currently, I'm not clear on what the issue is exactly, but if you want to check for the user input ignoring the case (Y or y, or whatever) then you might want to check String#equalsIgnoreCase(String) method.
The quieter you are, the more you are able to hear.
Joined: Jan 05, 2013
Thank you kemal for response
Here is the code
As you can see the program will end by pressing any key, but I want program to end only when a user enter N or n
I am not sure if i should use not operator ( ! ) Or equalsIsIgnoreCase and I am not sure how to use it.