Kyle Mills

Greenhorn
+ Follow
since Dec 09, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
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 Kyle Mills

9 years ago

When I changed this it starts to go into the second section, but it still doesn't recognize "stop", it just acts as though stop is a name, and it asks me for the employee wage forever.



your vars are set as int, you can't assign stop to an int, it will throw an InputMismatchException. my guess is, use Integer.parseInt() method, change the declarations to a String and if the user types stop, do your close and System.exit();
9 years ago
your If is not correct, use brackets where possible

not correct:



correct:

9 years ago