Prints the largest and smallest integers in the group in Java Program

(Largest and Smallest Integers) Write an application that reads five integers and determines
and prints the largest and smallest integers in the group. Use only the programming techniques you
learned in this chapter.

Prints the largest and smallest integers in Java Program

/*
 *       Filename:  LargestSmallest.java
 *
 *    Description:  Exercise 2.24 - Largest and Smallest Integers
 
 *        @Author: Bilal Tahir Khan Meo - https://www.codeblah.com
 
 * =====================================================================================
 */
import java.util.Scanner;

public class LargestSmallest{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);

        System.out.print("Enter 5 space separated integers: ");
        int a = input.nextInt();
        int b = input.nextInt();
        int c = input.nextInt();
        int d = input.nextInt();
        int e = input.nextInt();

        // calculate highest
        System.out.printf("Highest: %d\n",
                Math.max(a, Math.max(b, (Math.max(c, Math.max(d, e))))));

        // calculate lowest
        System.out.printf("Lowest: %d\n",
                Math.min(a, Math.min(b, (Math.min(c, Math.min(d, e))))));
    }
}