fork download
  1. import java.util.*;
  2. import java.io.*;
  3.  
  4. public class Main{
  5. public static void main(String[] args){
  6. String numberText = "";
  7.  
  8. try{
  9. numberText = br.readLine();
  10. } catch (IOException e){
  11. e.printStackTrace();
  12. }
  13.  
  14. String numbers[] = numberText.split(" ");
  15.  
  16. Arrays.sort(numbers);
  17.  
  18. int num = Integer.parseInt(numbers[1]);
  19.  
  20. System.out.println(num);
  21. }
  22. }
Success #stdin #stdout 0.06s 32332KB
stdin
1 2 10
stdout
10