Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("items: ");
- Random rand = new Random();
- metode = rand.nextInt(5000);
- for (int i = 0; i < a.length; i++) {
- if (sc.hasNextInt())
- a[i] = sc.nextInt();
- else {
- System.out.println("input-output error");
- sc.close();
- return;
- }
- }
- sc.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement