Home » Tip Bank » Java
  • Comment on this Article
Language: Java
Expertise: Intermediate
Nov 29, 2019

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

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
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
html-color-codes.info
htmlgoodies.com