From 37ea70cd63a64e2a843e39f73780f6151c689d3a Mon Sep 17 00:00:00 2001
From: Brandon Rodriguez <brodriguez8774@gmail.com>
Date: Fri, 27 Oct 2017 10:55:52 -0400
Subject: [PATCH] Update user output formatting

---
 a2/src/edu/wmich/cs3310/a2/Controller.java | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/a2/src/edu/wmich/cs3310/a2/Controller.java b/a2/src/edu/wmich/cs3310/a2/Controller.java
index 5c5ecce..91d5dcc 100644
--- a/a2/src/edu/wmich/cs3310/a2/Controller.java
+++ b/a2/src/edu/wmich/cs3310/a2/Controller.java
@@ -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();
-- 
GitLab