DataFetch
Fetches data from http://jsonplaceholder.typicode.com/posts/user_id endpoint where user_id is a number from 1 to 100 inclusive and then parses the JSON data to make it readable.
Instructions
- Open command prompt and change to the directory which contains DataFetch.java
- Type in
javac DataFetch.java
in order to compile the source code - To run the code, type
java DataFetch
orjava DataFetch 1
where the 1 can be replaced by any number from 1 to 100. If the former one is used, you will be asked by the program to input the user_id