Advertisement
grioool

Untitled

Sep 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. System.out.println("Введите N: ");
  2. boolean isCorrect = true;
  3. String inputn = bufferedReader.readLine();
  4. int n = Integer.parseInt(inputn);
  5. do {
  6. System.out.println("Введите N: ");
  7. String inputSum = bufferedReader.readLine();
  8. try {
  9. n = Integer.parseInt(inputSum);
  10. if (n > 0 && n < MaxSize) {
  11. isCorrect = false;
  12. }
  13. } catch (Exception e) {
  14. }
  15. } while (isCorrect);
  16. int[] aArray = new int[n];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement