Is there any in-built method in Java where you can find the user input\'s type whether it is positive, or negative and so on? The code below doesn\'t work. I am trying to fi
Use like below code.
if(number >=0 ) { System.out.println("Number is natural and positive."); }