[ad_1]
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)
[ad_2]
solved Changing from integers to strings in login system [duplicate]