> greater than
>= greater than or equal to
< less than
<= less than or equal to
public class MainClass {
public static void main(String[] args) {
int weight = 700;
char sex = 'm';
double myDouble = 1.6;
if (weight >= 500) {
System.out.println("weight >= 500");
}
if (myDouble > 1.6) {
System.out.println("myDouble > 1.6");
}
if (sex <= 'f') {
System.out.println("sex <= 'f'");
}
}
}
|