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


jackie

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

 

Did you know?

Approximately 70% of expectant mothers report experiencing some symptoms of morning sickness during the first trimester of pregnancy.

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.

Did you know?

The average older adult in the United States takes five prescription drugs per day. Half of these drugs contain a sedative. Alcohol should therefore be avoided by most senior citizens because of the dangerous interactions between alcohol and sedatives.

Did you know?

In 1886, William Bates reported on the discovery of a substance produced by the adrenal gland that turned out to be epinephrine (adrenaline). In 1904, this drug was first artificially synthesized by Friedrich Stolz.

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

For a complete list of videos, visit our video library