|
@@ -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
|
}
|