10th October, 2013
For a school assignment, I, with the help of my friend Reuben Oyler (whose hair I still think is too long), have written a small program, complete with a simple GUI, that sorts an inputted list of numbers in ascending order using either Bubble Sort or Merge Sort. The program consists of four files/classes: "BubbleSort.class", containing the methods required for Bubble Sort, "MergeSort.class", containing the methods required for Merge Sort, "SortingAlgorithm.class", an abstract superclass which both BubbleSort and MergeSort extend, and "SortingGui.class", the class containing code for creating the GUI as well as the main() method for starting the program.
Below is the complete code for the program:
Download the JAR file!
Below is the complete code for the program:
No comments:
Post a Comment