There was an error while loading. Please reload this page.
1 parent a9c0c77 commit 1544dd0Copy full SHA for 1544dd0
src/Course04_Methods/Lab/P09_GreaterOfTwoValues.java
@@ -11,19 +11,16 @@ public static void main(String[] args) {
11
case "int":
12
int firstNum = Integer.parseInt(scanner.nextLine());
13
int secondNum = Integer.parseInt(scanner.nextLine());
14
-
15
System.out.println(getMax(firstNum, secondNum));
16
break;
17
case "char":
18
char firstSymbol = scanner.nextLine().charAt(0);
19
char secondSymbol = scanner.nextLine().charAt(0);
20
21
System.out.println(getMax(firstSymbol, secondSymbol));
22
23
case "string":
24
String firstText = scanner.nextLine();
25
String secondText = scanner.nextLine();
26
27
System.out.println(getMax(firstText, secondText));
28
29
}
0 commit comments