/* The program demonstrates the use of parameters * */ public class MinMax { public static void main(String[] args) { int min = 1; int max = 5; /* Pass min and max as a paramenter into getSum Assign the value into number * */ int number = getSum(min, max); System.out.println("The sum of min and max is " + number); } /* Returns the sum of min and max * */ public static int getSum(int min, int max) { return min + max; } }