-5

Hey I'm learning Java and I got a project where I have to check if a Scanner input in the console equals an int value in an created Object. e.g I got a customerId in an Object and the user have to login with that customerId. How do I can check if that input equals the customerId in my Object?

  • 1
    by comparing them. what part are you having trouble with? reading the input? comparison? – Stultuske May 21 '21 at 08:02
  • Does this answer your question? [taking integer input in java](https://stackoverflow.com/questions/2942686/taking-integer-input-in-java) – Martheen May 21 '21 at 08:03

0 Answers0