Richard Maxwell

Greenhorn
+ Follow
since Jan 05, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richard Maxwell


Hey guys thank you kemal and Jayesh as per your suggestion I made the changes now it works.


String choice = "y";
String choices ="n";

while (!choice.equalsIgnoreCase("y") == (!choices.equalsIgnoreCase("n")))
11 years ago
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.



11 years ago
Hello

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.

Any help would be great


11 years ago