
public class IfTest {

    public static void main(String[] args) {
        int num = 42;
        if (num > 0) {
            System.out.println("The number is positive.");
        }
        if (num <= 0) {
            System.out.println("The number is not positive.");
        }
    }
}
