Question: Complete the program, MethodLab.java, by adding the methods specified in parts 1, 2, & 3 below: 1. Write a void method called greetingwitch takes three
Complete the program, MethodLab.java, by adding the methods specified in parts 1, 2, & 3 below: 1. Write a void method called greetingwitch takes three String parameters and formats and prints a title, first name, and last name in the following format and prints it out: blank line Dear , blank line 2. Write a method called maxthat takes two int parameters, num1 and num2, and returns the larger of the two integers. 3. Write a method called sumTo that takes two int parameters, num1 and num2 and returns the sum of all numbers from num1 to num2, inclusive. (i.e. given 2 and 4, returns 9. Because 2 + 3 + 4 = 9)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
