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
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