Katrice Williams-Dredden 6 years ago
parent
commit
6b574a3fae
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      src/main/java/io/zipcoder/ItemParser.java

+ 13
- 0
src/main/java/io/zipcoder/ItemParser.java View File

@@ -2,8 +2,16 @@ package io.zipcoder;
2 2
 
3 3
 import java.util.ArrayList;
4 4
 import java.util.Arrays;
5
+import java.util.TreeMap;
5 6
 
6 7
 public class ItemParser {
8
+    //to organize my Key/Value pairs
9
+    private TreeMap<String, ArrayList<Item>> groceryMap;
10
+
11
+    public ItemParser(){
12
+        //initializing the TreeMap
13
+        groceryMap = new TreeMap<String, ArrayList<Item>>();
14
+    }
7 15
 
8 16
 
9 17
     public ArrayList<String> parseRawDataIntoStringArray(String rawData){
@@ -28,4 +36,9 @@ public class ItemParser {
28 36
 
29 37
 
30 38
 
39
+
40
+
41
+
42
+
43
+
31 44
 }