FaltuTech.Club : Fane of Advanced Logical Thriving Utopian Technical Club

Sort an Array in Java (Using java.util)

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);

	
	}

}