Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { // initializing unsorted double array double dArr[] = { 13.2, 1.2, 0.7, 6.2, 4.5 }; System.out.println(Arrays.toString(dArr)); // sorting array Arrays.sort(dArr); System.out.println(Arrays.toString(dArr)); } }