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.
Type: Posts; User: Norm
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.
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
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...
long is a primitive data type.
See the tutorial: Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics)
The range of numbers I was talking about is 10000000 to 999999999999 ( lowest 8 digit number to highest 12 digit number)
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...