Question: why can't I sort an array like this ? rather I should do this UN 2 public class sortingArray ( 30 public static void main(String[]args)

why can't I sort an array like this ? rather I should do this

UN 2 public class sortingArray ( 30 public static void main(String[]args) { int [] array = new int[] {1,6,3,5,2}; int smallByDefault = array[0]; int helper ; for(int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
