Hello, I am writing a program where the user has to input values and then it checks if they are eligible or not. If they are eligible the program should ask the following questions, if not it should run an error. I was wondering if you could help me find my error
Please start by indenting your code correctly; it is difficult to read like that.
Please use legible variable names; coun and country are confusing, especially if put close together. And why are you calling a boolean cost?
You can call different methods after each input to validate the input.
You won't get Scanner#nextLine() to work after nextInt(). What have you ben taught about nextLine()?
posted 3 weeks ago
So, what can I call instead nextInt() for the age value.