1public class Example {
2 public static void main(String args[]) {
3 int num1 = 15;
4 int num2 = -5;
5 int num3 = 7;
6 if (num1 >= num2 && num1 >= num3)
7 System.out.println( num1 + " is the maximum number.");
8 else if (num2 >= num1 && num2 >= num3)
9 System.out.println( num2 + " is the maximum number.");
10 else
11 System.out.println( num3 + " is the maximum number.");
12 }
13}