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
Step by Step Solution
3.49 Rating (162 Votes )
There are 3 Steps involved in it
It sounds like you want to print out various sorting algorithms performance on different array sizes ... View full answer
Get step-by-step solutions from verified subject matter experts
