Sort an Array in Java (Using java.util) faltutech 2 months ago Sort an Array in Java (Using java.util) import java.util.Arrays; class test{ public static void main(String args[]){ int arr[] = {4,6,3,6,2,6}; Arrays.sort(arr); for(int i : arr) System.out.println(i); } }