0

Sup guys,

Its been a while since I've been on this but I have a question regarding If statements and strings.

I am trying to create a program and I need the user input (yes/no) so i am using strings for that.
The problem that I'm having is that whenever I run the program, I put yes or no as the user input, but then the program just quits instead of going onto the if statement.

Any help would be appreciated =D

2
Contributors
2
Replies
18
Views
4 Years
Discussion Span
Last Post by JeffGrigg
0

Generally speaking, the answer with String values is that you have to call the "equals" method, rather than using "==". ;-)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.