import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
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;
}
Arrays.sort(list);
for(int j = 0; j<list.length; j++){
System.out.println(list[j]);
}
}
}
Help...Please.
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Sarukei
26 January 2019, 18:57
Only classes in the java.lang package are imported by default. If you're going to use another class, don't forget to import it.
0