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 38 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
YES! Correct, THANKS for helping me on my review


raili21

  • Member
  • Posts: 324
Reply 3 on: Yesterday
Excellent

 

Did you know?

Liver spots have nothing whatsoever to do with the liver. They are a type of freckles commonly seen in older adults who have been out in the sun without sufficient sunscreen.

Did you know?

The U.S. Preventive Services Task Force recommends that all women age 65 years of age or older should be screened with bone densitometry.

Did you know?

Although not all of the following muscle groups are commonly used, intramuscular injections may be given into the abdominals, biceps, calves, deltoids, gluteals, laterals, pectorals, quadriceps, trapezoids, and triceps.

Did you know?

In 1835 it was discovered that a disease of silkworms known as muscardine could be transferred from one silkworm to another, and was caused by a fungus.

Did you know?

Blood is approximately twice as thick as water because of the cells and other components found in it.

For a complete list of videos, visit our video library