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 40 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
:D TYSM


jordangronback

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

 

Did you know?

According to the National Institute of Environmental Health Sciences, lung disease is the third leading killer in the United States, responsible for one in seven deaths. It is the leading cause of death among infants under the age of one year.

Did you know?

People who have myopia, or nearsightedness, are not able to see objects at a distance but only up close. It occurs when the cornea is either curved too steeply, the eye is too long, or both. This condition is progressive and worsens with time. More than 100 million people in the United States are nearsighted, but only 20% of those are born with the condition. Diet, eye exercise, drug therapy, and corrective lenses can all help manage nearsightedness.

Did you know?

Chronic necrotizing aspergillosis has a slowly progressive process that, unlike invasive aspergillosis, does not spread to other organ systems or the blood vessels. It most often affects middle-aged and elderly individuals, spreading to surrounding tissue in the lungs. The disease often does not respond to conventionally successful treatments, and requires individualized therapies in order to keep it from becoming life-threatening.

Did you know?

More than 4.4billion prescriptions were dispensed within the United States in 2016.

Did you know?

Fewer than 10% of babies are born on their exact due dates, 50% are born within 1 week of the due date, and 90% are born within 2 weeks of the date.

For a complete list of videos, visit our video library