Skip to content
Snippets Groups Projects
Commit 37ea70cd authored by Brandon Rodriguez's avatar Brandon Rodriguez
Browse files

Update user output formatting

parent d7b7b4cb
Branches
No related merge requests found
......@@ -72,9 +72,12 @@ public class Controller {
}
PopulateDictionary();
PopulateData();
PrintAllDictionaryValues();
//PrintAllDictionaryValues();
System.out.println();
System.out.println("Pre-Sorting Values: ");
PrintAllDataStructures();
SortAllDataStructures();
System.out.println("Post-Sorting Values: ");
PrintAllDataStructures();
}
......@@ -172,14 +175,14 @@ public class Controller {
if (tempArray == null) {
// No value found. Creating new entry in dictionary.
System.out.println("NULL RETURNED FOR " + charArray[totalIndex]);
//System.out.println("NULL RETURNED FOR " + charArray[totalIndex]);
intArray = new int[1];
intArray[0] = totalIndex;
sortingDictionary.put(Character.toString(charArray[totalIndex]), intArray);
} else {
// Previous value found. Appending index to previous entry.
System.out.println("DUPLICATE CHAR FOUND " + charArray[totalIndex]);
//System.out.println("DUPLICATE CHAR FOUND " + charArray[totalIndex]);
// Create new array of +1 size and copy all old values.
intArray = new int[tempArray.length + 1];
......@@ -204,7 +207,7 @@ public class Controller {
tempArray = sortingDictionary.get(Character.toString(charArray[index]));
if (tempArray == null) {
// No value found. Creating new entry in dictionary.
System.out.println("NULL RETURNED FOR " + charArray[index]);
//System.out.println("NULL RETURNED FOR " + charArray[index]);
intArray = new int[1];
intArray[0] = totalIndex;
......@@ -250,7 +253,7 @@ public class Controller {
* Calls sorting on all available data structures.
*/
protected void SortAllDataStructures() {
System.out.println("Sorting...");
//System.out.println("Sorting...");
ArrayBubbleSort();
ListBubbleSort();
ArraySelectionSort();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment