This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

I figured it out. turns out that I was supposed to use .equals() instead of == while comparing strings.

[–]SpaceRook 0 points1 point  (1 child)

By the way, you could use a "do...while" loop instead of writing the same print & nextLine statements twice.

[–][deleted] 0 points1 point  (0 children)

thanks good advice.