-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog
41 lines (33 loc) · 1.77 KB
/
log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2021
5/19
Made our team (Justin Fan and Alvin Lee) and deicded on a topic (covid tracker) and team name (Inspirational).
(Justin) Created a program that reads data from webpage (readData.java)
Some websites for data:
https://corona.lmao.ninja/
https://api.caw.sh/docs/#/
https://covidactnow.org/data-api
https://postman-toolboxes.github.io/covid-19/#featured-collections
5/20
(Justin) Made the code object oriented (WIP) and added new methods in main to convert the data in the link directly to a JSON Object and JSON Arrays.
The method that converts the API to JSON Arrays kept giving me this error:
java.lang.ClassCastException: class org.json.simple.JSONArray cannot be cast to class org.json.simple.JSONObject (org.json.simple.JSONArray and org.json.simple.JSONObject are in unnamed module of loader 'app')
at covidTracker.readData.dataInputArray(readData.java:68)
at covidTracker.readData.main(readData.java:39)
I will hopefully fix this later.
5/22
(Alvin) added 2 classes dataContinent and dataCountry
failed attempt to fix the error
5/26
(Justin) made a simple UI (user interface) that doesn't have much on it. you click on it and it gives the coordinates of where you clicked
moved all files into src folder for better filepathing
5/26
(Alvin) fixed the ClassCastException in the readData file now the code runs successfully
Reformatted the output in the dataStates, dataContinents, and dataCountries classes
5/28
(Justin) previously, the code just spit out all the data in a long list
changed code so that user can search for specific data within the API database or type "all" for the long list again
accounts for invalid inputs
5/29
(Justin) corrected package names that conflicted with import statements
5/29
(Alvin) Created a JFrame with buttons, currently only the "all" button works