public class TestII {
public static void main(String[] args) {
int a = 10;
int b = 11;
if (a < b)
System.out.println("True.");
else
System.out.println("False");
}
}
Note:if statements always use braces {}. Avoid the following error-prone form:
if (condition) //AVOID! THIS OMITS THE BRACES {}!statement;
System.out.println(a < b ? "True." : "False");
int a = 42;
int b = 55;
System.out.println(a < b);