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

Never mind. I figured it out.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.