Question: Complete the overloaded methods to make this program work. public class methods { public static void main (String[] args) { int A=1, B=10, C=-5, D=20;
Complete the overloaded methods to make this program work. public class methods { public static void main (String[] args) { int A=1, B=10, C=-5, D=20; System.out.println("The largest of A and B is " + Largest(A,B)); System.out.println("The largest of A, B and C is " + Largest(A,B,C)); System.out.println("The largest of A, B, C and D is " + Largest(A,B,C,D)); System.out.println("The product of A and B is " + Product(A,B)); System.out.println("The product of A, B and C is " + Product(A,B,C)); System.out.println("The product of A, B, C and D is " + Product(A,B,C,D)); } // put the methods here }
its a java so if i can get the answer in textpad that will be nice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
