Sorting.java
example from lecture.
If you want to read more about implementing sorting algorithms, see Chapter 7 of the Weiss textbook.
SortDetective.jar
program?
java -jar SortDetective.jar
The above command only works if the Terminal's "current directory" is the same as the directory where you saved SortDetective.jar
.
If not, you might need to supply a full path to the .jar file on your hard drive, like the following examples:
java -jar /Users/jsmith/Downloads/SortDetective.jar java -jar C:\Users\suzie\Documents\cse373\hw7\SortDetective.jar
If you are on Windows and double-clicking the JAR does not run it, but you are unable to use the Terminal as described, you can instead try this .bat file. Right-click the .bat link below and choose Save As... to download it to the same folder as your SortDetective.jar. Then double-click the .bat file to run it. (Make sure you save the file with the right file name with .bat extension, not .txt.)
StackOverflowError
when I run my quick sort with arrays over a certain size?