Advertisement
kdaud

ArraysDemo

May 16th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. package App;
  2.  
  3. import java.util.Arrays;
  4.  
  5. public class SimplerApp {
  6.     public void show()
  7.     {
  8.         int [] grades = {10,12,3,4,6,90,3,45,5};
  9.         Arrays.sort(grades);
  10.         System.out.println(grades[5]);
  11.         System.out.println();
  12.         for(int res:grades){
  13.             System.out.println(res);
  14.         }
  15.  
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement