Hi,
I'm trying to write little program that get input from the user (using BufferedReader and readLine() function) the program should run till the user type 'quit'.
so i write something like this
while(true)
{
System.out.println("Enter first number: (or type quit to exit program) ");
if(br.readLine() == "quit")
break;
else
...
}
The problem is that br.readLine() == "quit" doesn't working...
when I type quit or something else the program always go to the else...
Where is my mistake?
Thnks