FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java_Programming_Coursera/src/Test11.java at master · HVoltBb/Java_Programming_Coursera · GitHub
HVoltBb
Java_Programming_Coursera
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java_Programming_Coursera
/
src
/
Test11.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (43 loc) · 1.65 KB
Breadcrumbs
Java_Programming_Coursera
/
src
/
Test11.java
Copy path
File metadata and controls
58 lines (43 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import
java
.
util
.
ArrayList
;
public
class
Test
{
public
static
void
main
(
String
[]
shit
) {
// Quiz Week 1 Part 1
EarthQuakeParser
parser
=
new
EarthQuakeParser
();
String
source
=
"data/nov20quakedata.atom"
;
ArrayList
<
QuakeEntry
>
data
=
parser
.
read
(
source
);
/*
EarthQuakeClient x = new EarthQuakeClient();
int y = x.filterByDepth(data, -8_000.0, -5_000.0).size();
int y2= x.filterByPhrase(data, "start", "Explosion").size();
int y3= x.filterByPhrase(data, "end", "California").size();
int y4= x.filterByPhrase(data, "any", "Creek").size();
System.out.println(y + " " + y2 + " " + y3 + " " + y4);
*/
LargestQuakes
z
=
new
LargestQuakes
();
z
.
findLargestQuakes
();
/*
EarthQuakeClient x = new EarthQuakeClient();
ArrayList<QuakeEntry> bigQuakes = x.filterByMagnitude(data, 5.5);
for(QuakeEntry qe: bigQuakes){
System.out.println(qe);
}
*/
/* Assignment 2: Filtering by Depth
EarthQuakeClient x = new EarthQuakeClient();
x.closeToMe();
x.quakesOfDepth();
*/
/* Assignment 3: Filtering by Phrase in Title
EarthQuakeClient x = new EarthQuakeClient();
x.quakeByPhrase();
*/
/* Assignment 4: Finding the Closest Earthquakes to a Location
ClosestQuakes x = new ClosestQuakes();
x.findClosestQuakes();
*/
/* Assignment 5: Finding the Largest Magnitude Earthquakes
LargestQuakes x = new LargestQuakes();
x.findLargestQuakes();
*/
}
}
Back
|
FazBrowse Home
|
New Git URL