ADoyle4

sortAscension

Apr 20th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import java.util.*;
  2. class sortAscension{
  3. public static void main( String [] args){
  4. ArrayList<Integer> a = new ArrayList<Integer>();
  5. while(!Console.EndOfFile()){
  6. int tmp = Console.readInt();
  7. a.add(tmp);
  8. }
  9. Collections.sort(a);
  10. for(int i =0; i<a.size()-1; i++){
  11. System.out.println(a + " ");
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment