dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Nov 29, 2019

How to Quickly Sort an Array

The quickest solution for sorting an array in Java relies on Arrays.sort() method as below:

int[] arr = {5, 12, 3, 44, 55}; 
  
Arrays.sort(arr); 
Octavia Anghel
 
Thanks for your registration, follow us on our social networks to keep up-to-date