What is wrong here? Everything seems to work according to requirements. Please help. Thanks in advance.

package com.codegym.task.task07.task0721;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Min and max in arrays
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maximum=0;
int minimum=0;
//write your code here
int [] numbers= new int [20];
String sNumber;
int num;
for (int i = 0; i<20; i++)
{
sNumber = reader.readLine();
num = Integer.parseInt(sNumber);
numbers [i] = num;
}
for (int i = 0; i<20; i++)
{
if (numbers [i] > maximum) maximum = numbers [i];
if (numbers [i] < minimum) minimum = numbers [i];
}
System.out.print(maximum + " " + minimum);
}
}

//write your code here. If you find this hard, you can also use Arrays.sort[numbers]. It will automatically sort the input from small to large, so you can just set min and max to first and last index:Arrays.sort(numbers); maximum = numbers[numbers.length - 1]; minimum = numbers[0];Hope this helps!