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


momolu

  • Member
  • Posts: 320
Reply 3 on: Yesterday
Gracias!

 

Did you know?

About 3% of all pregnant women will give birth to twins, which is an increase in rate of nearly 60% since the early 1980s.

Did you know?

Ether was used widely for surgeries but became less popular because of its flammability and its tendency to cause vomiting. In England, it was quickly replaced by chloroform, but this agent caused many deaths and lost popularity.

Did you know?

Stroke kills people from all ethnic backgrounds, but the people at highest risk for fatal strokes are: black men, black women, Asian men, white men, and white women.

Did you know?

Anesthesia awareness is a potentially disturbing adverse effect wherein patients who have been paralyzed with muscle relaxants may awaken. They may be aware of their surroundings but unable to communicate or move. Neurologic monitoring equipment that helps to more closely check the patient's anesthesia stages is now available to avoid the occurrence of anesthesia awareness.

Did you know?

The average office desk has 400 times more bacteria on it than a toilet.

For a complete list of videos, visit our video library