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 42 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
Great answer, keep it coming :)


ttt030911

  • Member
  • Posts: 315
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Although the Roman numeral for the number 4 has always been taught to have been "IV," according to historians, the ancient Romans probably used "IIII" most of the time. This is partially backed up by the fact that early grandfather clocks displayed IIII for the number 4 instead of IV. Early clockmakers apparently thought that the IIII balanced out the VIII (used for the number 8) on the clock face and that it just looked better.

Did you know?

Increased intake of vitamin D has been shown to reduce fractures up to 25% in older people.

Did you know?

Alzheimer's disease affects only about 10% of people older than 65 years of age. Most forms of decreased mental function and dementia are caused by disuse (letting the mind get lazy).

Did you know?

Recent studies have shown that the number of medication errors increases in relation to the number of orders that are verified per pharmacist, per work shift.

Did you know?

There can actually be a 25-hour time difference between certain locations in the world. The International Date Line passes between the islands of Samoa and American Samoa. It is not a straight line, but "zig-zags" around various island chains. Therefore, Samoa and nearby islands have one date, while American Samoa and nearby islands are one day behind. Daylight saving time is used in some islands, but not in others—further shifting the hours out of sync with natural time.

For a complete list of videos, visit our video library