-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
14 lines (10 loc) · 841 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
This solution uses an application (RetrieverApp) to get simple commands (Zip, Music and Television) to call
the respective classes.
Note it simplifies the main loop by moving most of the code into methods of the class. It still isn't totally effective
since the commands (eg, "zipcode") are located in multiple places. So you have to remember to change things in multiple
places. Something for you to think about.
Also notice the Utility.java class. This class uses an external library from json.org to create JSON java object
from Strings so we can use Java methods to inspect it. I made the methods static so you don't have to create any
object instance to use them. If you look at RetrieverApp, you'll see one of the Utility methods in action.
You may have to add a line to build.gradle to retrieve the JSON.org package.
Frank