If statement to not accept float numbers.
I'm new to the Java Programming world so I need help. I can't have much advanced help as being just a student 3 weeks into the course but I'm trying to be creative on my program but not sure how to get what I'm looking for.
Basically the user can input int values only and I want to make it where if they input a float like 5.5 that it tells them to only input whole numbers. How would I go about doing so?
if (A) = float))
System.out.println("Please Enter Whole Number Only! Thank You!");
but that's not going to work. So my question is how to get something like this to work?