|
How Do I Say *This* In Java?
How do I say
if the variable called "example" does not equal an integer
DO
System.out.println("wrong");
ELSE
Do nothing;
I know that I shouldn't put an else in at all, but what about the IF statement?
and how do i say someting in a loop but one part of the sentence changes each time? like saying "you have entered the number for box 1" then after entering another integer it says "you have entered the number for box 2"?
thanks!
Last edited by zythyl : 05-13-2008 at 06:14 AM.
|