Question: Complete the following method that is passed two integers as parameters. Returns the largest value Note: use a local variable to store the result to

Complete the following method that is passed two integers as parameters. Returns the largest value Note: use a local variable to store the result to allow a single return statement at the end of the method LAB ACTIVITY 6.19.1: zyLab: Max of 2 Main.java 1 public class Main f 2 public int findMax(int a, int b) Type your code here. */ 4 6 II This method does nothing but needed for testing 7 public static void main(String args) 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
