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 43 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
:D TYSM


Jossy

  • Member
  • Posts: 336
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

Walt Disney helped combat malaria by making an animated film in 1943 called The Winged Scourge. This short film starred the seven dwarfs and taught children that mosquitos transmit malaria, which is a very bad disease. It advocated the killing of mosquitos to stop the disease.

Did you know?

ACTH levels are normally highest in the early morning (between 6 and 8 A.M.) and lowest in the evening (between 6 and 11 P.M.). Therefore, a doctor who suspects abnormal levels looks for low ACTH in the morning and high ACTH in the evening.

Did you know?

More than 150,000 Americans killed by cardiovascular disease are younger than the age of 65 years.

Did you know?

Bacteria have flourished on the earth for over three billion years. They were the first life forms on the planet.

Did you know?

Complications of influenza include: bacterial pneumonia, ear and sinus infections, dehydration, and worsening of chronic conditions such as asthma, congestive heart failure, or diabetes.

For a complete list of videos, visit our video library