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

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

skymedlock

  • Hero Member
  • *****
  • Posts: 561

Question 1

Which of the following is correct to sort the elements in a list lst?
◦ Arrays.sort(lst)
◦ Collections.sort(lst)
◦ new LinkedList(new String[]{"red", "green", "blue"})
◦ lst.sort()

Question 2

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


Related Topics

Need homework help now?

Ask unlimited questions for free

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

kardosa007

  • Sr. Member
  • ****
  • Posts: 300
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




skymedlock

  • Member
  • Posts: 561
Reply 2 on: May 6, 2020
YES! Correct, THANKS for helping me on my review


isabelt_18

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

 

Did you know?

The term bacteria was devised in the 19th century by German biologist Ferdinand Cohn. He based it on the Greek word "bakterion" meaning a small rod or staff. Cohn is considered to be the father of modern bacteriology.

Did you know?

Adolescents often feel clumsy during puberty because during this time of development, their hands and feet grow faster than their arms and legs do. The body is therefore out of proportion. One out of five adolescents actually experiences growing pains during this period.

Did you know?

Russia has the highest death rate from cardiovascular disease followed by the Ukraine, Romania, Hungary, and Poland.

Did you know?

According to the FDA, adverse drug events harmed or killed approximately 1,200,000 people in the United States in the year 2015.

Did you know?

To maintain good kidney function, you should drink at least 3 quarts of water daily. Water dilutes urine and helps prevent concentrations of salts and minerals that can lead to kidney stone formation. Chronic dehydration is a major contributor to the development of kidney stones.

For a complete list of videos, visit our video library