Advertisement
djemm1996

Untitled

Feb 25th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. System.out.println("items: ");
  2. Random rand = new Random();
  3. metode = rand.nextInt(5000);
  4. for (int i = 0; i < a.length; i++) {
  5.  
  6. if (sc.hasNextInt())
  7. a[i] = sc.nextInt();
  8.  
  9. else {
  10. System.out.println("input-output error");
  11. sc.close();
  12. return;
  13. }
  14. }
  15. sc.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement