import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sin = new Scanner(System.in); int a = sin.nextInt(); int b = sin.nextInt(); int c = sin.nextInt(); System.out.println(max(a,b,c)); } public static int max(int a,int b,int c){ if(a > b & a > c){ return a; }else if(b > c){ return b; }else{ return c; } } }
importjava.util.Scanner;publicclassMain{publicstatic voidmain(String[] args){Scanner input = newScanner(System.in);intshuxue = input.nextInt();intyingyu = input.nextInt();intchengxusheji = input.nextInt();System.out.println(Math.max(shuxue,Math.max(yingyu,chengxusheji)));}}
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Integer> list = new ArrayList<>(); for (int i = 0; i < 3; i++) { list.add(scanner.nextInt()); } Integer result = list.stream().max(Integer::compare).get(); System.out.println(result); } }
public class Main { public static void main(String[] args) { java.util.Scanner s = new java.util.Scanner(System.in); int temp = 0; int java = s.nextInt(); int math = s.nextInt(); int english = s.nextInt(); if( java >= math && java >= english) temp = java; if( math >= java && math >= english) temp =math; if( english >= java && english >= math) temp = english; System.out.println(temp); } }