for (int i = 0; i < 2; i++) { int temp = Integer.parseInt(br.readLine()); drink = Math.min(temp, drink); }
Math.min(변수 , 변수 ) : 더 작은 값을 출력.