020-002-002
Method Definition: Maximum Finder Method
Medium
Problem Description
Methods with Conditionals
Use if statement to determine larger value and return it.
.Test Cases
※ Output examples follow programming industry standards
Input:
10 5
Expected Output:
Max: 10
Input:
3 8
Expected Output:
Max: 8
Input:
7 7
Expected Output:
Max: 7
❌ Some tests failed
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here
sc.close();
}
}
0 B / 5 MB
You have 9 free executions remaining
