Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    15
    Views
    1,359

    Re: Rather Basic Question

    Try printing out the results at each step and compare them to the results you get manually to see where the program is going wrong.
  2. Replies
    15
    Views
    1,359

    Re: Rather Basic Question

    You need to learn how to use google to research terms you don't understand like radix.

    Also reading the link I posted would help.

    Here is another link for the API doc:
    Java Platform SE 7
  3. Replies
    15
    Views
    1,359

    Re: Rather Basic Question

    There is no long int. There is an int and there is a long. See the link in post#8
    Also read the API doc for the Scanner class to see what its methods can read.


    You can read a 15 digit number...
  4. Replies
    15
    Views
    1,359

    Re: Rather Basic Question

    long is a primitive data type.
    See the tutorial: Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics)
  5. Replies
    15
    Views
    1,359

    Re: Rather Basic Question

    The range of numbers I was talking about is 10000000 to 999999999999 ( lowest 8 digit number to highest 12 digit number)
  6. Replies
    15
    Views
    1,359

    Re: Rather Basic Question

    You can check if the number entered by the user is in the desired range and if not ask the user again for a number in the desired range. The code would be in a loop that wouldn't exit until the used...
Results 1 to 6 of 6