Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution
- {
- public static void main(String[] args) throws Exception
- {
- BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
- int[] array = new int[30];
- for (int i = 0; i < 30; i++)
- {
- array[i] = Integer.parseInt(reader.readLine());
- }
- sort(array);
- System.out.println(array[9]);
- System.out.println(array[10]);
- }
- public static void sort(int[] array)
- {
- Arrays.sort(array);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement