SelectSort
import java.util.Scanner; public class SelectSort { public static void main(String[] args) { int[] intArray = new int[6]; Scanner scan = new Scanner(System.in); int[] n = scan.nextInt(); int i = 0; while (i < N) { //using an object of the Scanner class fill the intArray array } i = 0; while (i < N) { int j = 0; while (j < N) { //implementation of the algorithm: finding the minimum element j++; } //algorithm implementation: put the found minimum element at the beginning of the subarray i++; } i = 0; while (i < N) { System.out.print(intArray[i]); i++; } } }