subject

Consider the following code snippet: public static void check(arraylist chknum1){ int cnt = 0; for(int i = 0; i < chknum1.size(); i++) { if(chknum1.get(i) == 0) { cnt++; } } system. out. println("the total 0 values in the list are: " + cnt); }which one of the following is true about the check method in the given code snippet? select one: a. the check method counts all the elements with value 0 in an array list passed as a parameter to the method. b. the check method removes all the elements with value 0 from an array list passed as a parameter to the method. c. the check method counts all the elements with value 0 in an array list passed as a parameter to a method and also returns the count. d. the check method adds 0 to the elements of an array list as a parameter to a method and also returns the array list.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
You know the right answer?
Consider the following code snippet: public static void check(arraylist chknum1){ int cnt = 0; for(...
Questions
question
Mathematics, 09.07.2019 18:30
question
Mathematics, 09.07.2019 18:30
question
Mathematics, 09.07.2019 18:30
Questions on the website: 13722361