answersLogoWhite

0

The java.util.Collections class does have a sort method. The overloaded headers are below:

// Sort according to the natural ordering of the elements in list.

static <T extends Comparable<? super T>> void sort(List<T> list)

// Sort according to the ordering specified by c.

static <T> void sort(List<T> list, Comparator<? super T> c)

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What the advantages of using the Java Collection Framework?

The main advantage is that you don't have to implement those collections yourself. Java provides very efficient implementations for dozens of collections.


What are the types and functions of libraries in Java?

Libraries are prewritten pieces of java code that are present to help us write code for our applications easily and effectively. for ex: Collections.sort() is a library function in Java that can be used to sort collections. This can be used instead of the programmer writing his own custom implementation of sort.


In what career would one use Java collections?

Careers that use Java Collections include programmers who build data capture and storage programs, as a Java Collection is a framework that allows a programmer to implement reusable data into a program.


How does a person obtain information about collections in Java?

You can obtain information about collections in Java online at the Java section of the Oracle Docs website. Alternatively, you can also find this information at the Wikipedia. Once on the website, type "Java collections framework" into the search field at the top of the page and press enter to bring up the information.


Is spring framework in java?

Yes, Spring is a framework built using the Java Technology.


What is java utility?

Java.util package contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes.


Collection framework in java?

Collection framework is a framework in java that helps us handle multiple java objects in one shot. For example if you have an employee validation system where you have details about all the employees in an office, you will have lets say 1000 employee objects available in an ArrayList which we can iterate and check if every employee that is going through the door is a valid employee. Some of the collections we can use are: a. ArrayList b. Vector c. HashMap d. HashSet e. etc


Sorting of array through function in java programming?

// the build in sorting functions in Java will sort pretty much any array // of Comparable objects or primitives Arrays.sort(someArray);


What is the difference between framework and IDE?

IDE is just the development environment while the Framework is the backbone of compiling the code.IDE's :Visual StudioJbuilderjdevelopereclipsenetbeansand so onBut Framework for .Net programmers is different than what Java programmers understandFramework for java programmers is:Spring FrameworkStruts FrameworkShine Enterprise Java PatternFramework for .net programmers is:.net Framework 1.1.net Framework 2.net Framework 3.net Framework 3.5.net Framework 4


In Java can Array be extended after it has been initialized?

In Java, arrays have a fixed size once they are initialized and cannot be extended. If you need a resizable array, you can use the ArrayList class from the Java Collections Framework, which allows for dynamic resizing. Alternatively, you can create a new array with a larger size and copy the elements from the original array to the new one if you want to extend an existing array.


What can J.A.D.E stand for?

= Java Agent DEvelopment framework. =


What does Spring Framework specialize in?

The Java platform Spring Framework is an alternative to the Enterprise JavaBean model. It can be used to program a variety of Java applications, including web-based applications.