Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- class sortAscension{
- public static void main( String [] args){
- ArrayList<Integer> a = new ArrayList<Integer>();
- while(!Console.EndOfFile()){
- int tmp = Console.readInt();
- a.add(tmp);
- }
- Collections.sort(a);
- for(int i =0; i<a.size()-1; i++){
- System.out.println(a + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment