Search:

Type: Posts; User: curmudgeon

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,069

    Re: User entry needs to be exactly 5 digits

    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...
  2. Replies
    4
    Views
    1,069

    Re: User entry needs to be exactly 5 digits

    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...
Results 1 to 2 of 2