Advertisement
Guest User

Untitled

a guest
May 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public class Main {
  2. public static void main(String[] args) {
  3. int[] weights = {40,50,60,70,80};
  4. java.util.Arrays.sort(weights);
  5. for(int w : weights) {
  6. System.out.println(w);
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement