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
Step: 1
It sounds like you want to print out various sorting algorithms performance on different array sizes ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started