Public class SelectionSort {/** The method for sorting the numbers */public static void selectionSort(double[] list) {for (int I = 0; I Solution SortStrings.java import java.util.Arrays; import java.util.Scanner; public class SortStrings { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(true){ System.out.println(\"Enter the list size: \"); int n = scan.nextInt(); scan.nextLine(); String names[] = new String[n]; for(int i=0; i.