This topic contains a solution. Click here to go to the answer

Author Question: You can use the methods in the Arrays class to ________. (Read 33 times)

penza

  • Hero Member
  • *****
  • Posts: 1,022

Question 1

To find a maximum object in an array of strings (e.g., String[] names = {"red", "green", "blue"}), use ________.
◦ Arrays.sort(names)
◦ Arrays.max(names)
◦ Collections.max(names)
◦ Collections.max(Arrays.asList(names))
◦ None of the above

Question 2

You can use the methods in the Arrays class to ________.
◦ sort an array
◦ find the maximum object in an array using a Comparator object
◦ do a binary search on an array
◦ find the maximum object in an array based on the compareTo method
◦ shuffle an array


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by penza on May 6, 2020

lauravaras

  • Sr. Member
  • ****
  • Posts: 347
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 55% of students answer this correctly




penza

  • Member
  • Posts: 1,022
Reply 2 on: May 6, 2020
Great answer, keep it coming :)


carojassy25

  • Member
  • Posts: 299
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

According to the National Institute of Environmental Health Sciences, lung disease is the third leading killer in the United States, responsible for one in seven deaths. It is the leading cause of death among infants under the age of one year.

Did you know?

Addicts to opiates often avoid treatment because they are afraid of withdrawal. Though unpleasant, with proper management, withdrawal is rarely fatal and passes relatively quickly.

Did you know?

Today, nearly 8 out of 10 pregnant women living with HIV (about 1.1 million), receive antiretrovirals.

Did you know?

The longest a person has survived after a heart transplant is 24 years.

Did you know?

Although the Roman numeral for the number 4 has always been taught to have been "IV," according to historians, the ancient Romans probably used "IIII" most of the time. This is partially backed up by the fact that early grandfather clocks displayed IIII for the number 4 instead of IV. Early clockmakers apparently thought that the IIII balanced out the VIII (used for the number 8) on the clock face and that it just looked better.

For a complete list of videos, visit our video library