Solved in comments, '(tempuser.equals(actualuser)' was the correct way.
This is a snippet of my code;
if (tempuser != "a"){
System.out.println("FAIL");
logincount=logincount+1;
}
else {
System.out.println("Success");
}
The program is printing out FAIL, even when I print out the scanned variables and everything is "a".
Any ideas?
Can post more code on request