Replace int
with String
Replace console.nextInt();
with console.next();
or console.nextLine();
and finally, use .equals()
when comparing strings:
UserID == EnteredUserID
Should be:
UserID.equals(EnteredUserID)
solved Changing from integers to strings in login system [duplicate]