I'm trying to check a string for a specific number but it doesn't seem to find it.
string = sc.next();
if(string != "-1")
return 0;
So when I enter -1 into the input, it just continues on without breaking the program. Am I doing something wrong here?