i think this is easy..
I have a field where users can enter a number, but the number must be a positive integer
like 10, 20 ect . i want to check if the number is negative
if(the integer is negative or starts with a minus '-' sign)
System.out.println("Please enter positive integer only"); //display this in console
any ideas how i can do that in java