Question: Extend the program given below by adding another method called printSum that will take in number1 and number 2 and output the sum of the
Extend the program given below by adding another method called printSum that will take in number1 and number 2 and output the sum of the two number. Call this method from the main method. Re-write the code for the class Operation. 
public class Operation [ public static void printoperation (int numberl, int number2) System . out . print (number1 + "-" + number2 + "=" + (number1 -number2)); return public static void main (String [1 args) [ int even!umber = 2; int oddNumber1 printoperation (evenNumber, oddlumber); return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
