Computers and Technology
Computers and Technology, 28.11.2019 20:31, Shubbs

Which one of the following is the correct code snippet for calculating the largest value in an integer array list alist?
a. int max = alist. get(0); for (int count = 1; count < alist. size(); count++) { if (alist. get(count) > max) { max = alist. get(count); } }
b. int max = 0; for (int count = 1; count < alist. size(); count++) { if (alist. get(count) > max) { max = alist. get(count); } }
c. int max = alist. get(0); for (int count = 1; count > alist. size(); count++) { if (alist. get(count) > = max) { max = alist. get(count); } }
d. int max = alist[1]; for (int count = 1; count < alist. size(); count++) { if (alist. get(count) > max) { max = alist. get(count); } }

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, gudon986732
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, noah2o2o
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 2
image
Computers and Technology, 23.06.2019 06:20, Ab20600
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, BilliePaul95
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
Do you know the correct answer?
Which one of the following is the correct code snippet for calculating the largest value in an integ...

Questions in other subjects: