int num = -5; if (!(num > 0)) { if (!(num == 0)) { System.out.println("Negative number"); } }