Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("Введите N: ");
- boolean isCorrect = true;
- String inputn = bufferedReader.readLine();
- int n = Integer.parseInt(inputn);
- do {
- System.out.println("Введите N: ");
- String inputSum = bufferedReader.readLine();
- try {
- n = Integer.parseInt(inputSum);
- if (n > 0 && n < MaxSize) {
- isCorrect = false;
- }
- } catch (Exception e) {
- }
- } while (isCorrect);
- int[] aArray = new int[n];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement