You're welcome.
As for a tutorial, the best are to be found here:
The Java™ Tutorials, The Java™ Tutorials: this holds all the tutorials
Learning the Java Language: the start of the Java...
Type: Posts; User: curmudgeon
You're welcome.
As for a tutorial, the best are to be found here:
The Java™ Tutorials, The Java™ Tutorials: this holds all the tutorials
Learning the Java Language: the start of the Java...
You could read it in as a String and check that the String length == 5. Then parse it into an int and make sure it parses OK by doing it inside of a try/catch block.
As an aside, you're repeating...