subject

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
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 18:20
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
3. write assignment statements that perform the following operations with the variables a, b, and c: a. adds 2 to a and assigns the result to b b. multiplies b times 4 and assigns the result to a c. divides a by 3.14 and assigns the result to b
Answers: 2
You know the right answer?
Public static void main(string[] args)

int[] responses = { 1, 2, 5, 4, 3, 5, 2, 1, 3, 3,...
Questions
question
Mathematics, 08.03.2021 20:30
question
Business, 08.03.2021 20:30
question
Biology, 08.03.2021 20:30
question
Arts, 08.03.2021 20:30
question
Mathematics, 08.03.2021 20:30
Questions on the website: 13722367