Question: Java- For some reason my loops are ignoring my println statements and I'm not sure why its skipping over them. Also the three different arrays

Java- For some reason my loops are ignoring my println statements and I'm not sure why its skipping over them. Also the three different arrays (10,100,1000) aren't being processed through the For loop. I need the output to look similar to this:

size 10

--unsorted--

shell sort ...etc

bubble sort...etc

bubble sort 2...etc

--sorted--

shell sort ...etc

bubble sort...etc

bubble sort 2...etc

size 100

--unsorted--

shell sort ...etc

bubble sort...etc

bubble sort 2...etc

--sorted--

shell sort ...etc

bubble sort...etc

bubble sort 2...etc

size 1000

--unsorted--

shell sort ...etc

bubble sort...etc

bubble sort 2...etc

--sorted--

shell sort ...etc

bubble sort...etc

bubble sort 2...etc

X public static void main(String [] args) long start, end, execution; int[] 

size={10, 100, 1000); for (int i=0; i  

X public static void main(String [] args) long start, end, execution; int[] size={10, 100, 1000); for (int i=0; i

Step by Step Solution

3.49 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It sounds like you want to print out various sorting algorithms performance on different array sizes ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!