//Program that copies contents of one array to another using length member. import java.util.Scanner; public class SortingArray { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter the size of Array :- "); int size = sc.nextInt(); int[] array = new int[size]; System.out.print("\nEnter the Array - "); for(int i=0; i= array[(i+1)]) { temp = array[i]; array[i] = array[(i+1)]; array[(i+1)] = temp; } } System.out.print("\nArray in the Sorted order is :- "); for(int i=0; i