0 / 0 / 0
Регистрация: 20.10.2016
Сообщений: 4
|
||||||||||||||||
1 | ||||||||||||||||
Ошибка в коде java.lang.ArrayIndexOutOfBoundsException: 120.10.2016, 08:57. Показов 771. Ответов 1
Метки нет (Все метки)
Программа вылетает после ввода параметров фигур.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at univer.project_1.cylindr_circle.demo_programm.main(demo_programm.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
0
|
20.10.2016, 08:57 | |
Ответы с готовыми решениями:
1
Ошибка java.lang.ArrayIndexOutOfBoundsException Ошибка java.lang.ArrayIndexOutOfBoundsException Ошибка: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9 Ошибка Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7 |
257 / 234 / 185
Регистрация: 02.04.2016
Сообщений: 898
|
|
20.10.2016, 10:20 | 2 |
Где у вас цикл for (int i = 1; i<=n;++i)
Замените на for (int i = 0; i <n;++i)
1
|
20.10.2016, 10:20 | |
20.10.2016, 10:20 | |
Помогаю со студенческими работами здесь
2
Ошибка Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Ошибка: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 Ошибка Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException Ошибка Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |