FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_upgrade/src/main/java/sorting/Golfer.java at master · rlwing/java_upgrade · GitHub
rlwing
/
java_upgrade
Public
forked from
kousen/java_upgrade
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java_upgrade
/
src
/
main
/
java
/
sorting
/
Golfer.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (33 loc) · 828 Bytes
Breadcrumbs
java_upgrade
/
src
/
main
/
java
/
sorting
/
Golfer.java
Copy path
File metadata and controls
42 lines (33 loc) · 828 Bytes
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
package
sorting
;
public
class
Golfer
{
private
int
score
;
private
String
first
;
private
String
last
;
public
Golfer
() {}
public
Golfer
(
String
first
,
String
last
,
int
score
) {
this
.
score
=
score
;
this
.
first
=
first
;
this
.
last
=
last
;
}
public
Golfer
(
Golfer
golfer
) {
this
.
score
=
golfer
.
score
;
this
.
first
=
golfer
.
first
;
this
.
last
=
golfer
.
last
;
}
public
int
getScore
() {
return
score
;
}
public
void
setScore
(
int
score
) {
this
.
score
=
score
;
}
public
String
getFirst
() {
return
first
;
}
public
String
getLast
() {
return
last
;
}
@
Override
public
String
toString
() {
return
String
.
format
(
"Golfer{score=%2d, last='%8s', first='%5s'}"
,
score
,
last
,
first
);
}
}
Back
|
FazBrowse Home
|
New Git URL