need help
package com.codegym.task.task06.task0622;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Collections;
/*
Ascending numbers
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[]list=new int[5];
for(int i =0; i<list.length; i++){
int input = Integer.parseInt(reader.readLine());
list[i]=input;
System.out.println(input);
}
Arrays.sort(list);
for(int j = 0; j<list.length; j++){
System.out.println(Arrays.toString(list));
}
//write your code here
}
}