I can't figure out what I'm doing wrong. Thanks for the help <3.
Quote:
class numbers {
public static void main (String args[]) {
int number = 80;
if(number > 70 ! number < 30)
System.out.println("Yay");
}
}
Printable View
I can't figure out what I'm doing wrong. Thanks for the help <3.
Quote:
class numbers {
public static void main (String args[]) {
int number = 80;
if(number > 70 ! number < 30)
System.out.println("Yay");
}
}
Does that code compile? If not, and you can't understand the compiler message, post that message so you can ask a question about it. ("What does this message mean?")
-----
A couple of little things: use "code" tags rather than "quote" tags when you post code. There is a # button for this purpose next to the speech bubble one. The class should be named Numbers as Java classes start with an upper case letter: likewise it should be in a file called Numbers.java.
Can you explain what you are trying to do?