Guest User

Untitled

a guest
Oct 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public static void main(String[] args) {
  2. int [] temprature = {9,8,5,13,7,17,5,14,9,5,18};
  3.  
  4. for (double ar : temprature) {
  5. System.out.println(ar);
  6. }
  7.  
  8. Collections.sort(temprature);
  9. for (double ar : temprature) {
  10. System.out.println(ar); }
  11.  
  12. Collections.reverse(temprature);
  13. for (double ar : temprature) {
  14. System.out.println(ar); }
  15.  
  16.  
  17.  
  18. }
Add Comment
Please, Sign In to add comment