Public static void main(string[] args)
int[] responses = { 1, 2, 5, 4, 3, 5, 2, 1, 3, 3,...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 06.10.2019 14:30 aaron0828
Public static void main(string[] args)
int[] responses = { 1, 2, 5, 4, 3, 5, 2, 1, 3, 3, 1, 4, 3, 3, 3,
2. 3. 3. 2. 14]
int[] frequency = new int[6];
for (int answer = 0; answer < responses. length; answer++)
try
++frequency[responses [answer]];
catch (arrayindexoutofbounds exception e)
system. out. println(e);
system. out. printf(" responses [%d] = %d%n%n", answer, responses (answer]);
what try and catch did here?
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 02:30, corinnerodriguez2001
How to delete a question in
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 09:30, kataldaine
Which resource produces the cleanest energy? -coal -gasoline -oil -wind
Answers: 1
You know the right answer?
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 31.01.2021 06:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 31.01.2021 06:50
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 31.01.2021 06:50
![Konu](/tpl/images/cats/en.png)
English, 31.01.2021 06:50
![Konu](/tpl/images/cats/pravo.png)
Law, 31.01.2021 06:50
![Konu](/tpl/images/cats/istoriya.png)
History, 31.01.2021 06:50