Write an program in Java that reads a number is 5 digits long & display error message if not & allow the user to enter a new value?
In Java I'm trying to ask the user to enter integer numbers, no decimals. How can I program an if statement that will display an error if the user enters a decimal?