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 52 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


amandanbreshears

  • Member
  • Posts: 320
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

Cucumber slices relieve headaches by tightening blood vessels, reducing blood flow to the area, and relieving pressure.

Did you know?

The average adult has about 21 square feet of skin.

Did you know?

People with alcoholism are at a much greater risk of malnutrition than are other people and usually exhibit low levels of most vitamins (especially folic acid). This is because alcohol often takes the place of 50% of their daily intake of calories, with little nutritional value contained in it.

Did you know?

In ancient Rome, many of the richer people in the population had lead-induced gout. The reason for this is unclear. Lead poisoning has also been linked to madness.

Did you know?

The first successful kidney transplant was performed in 1954 and occurred in Boston. A kidney from an identical twin was transplanted into his dying brother's body and was not rejected because it did not appear foreign to his body.

For a complete list of videos, visit our video library