-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBowler.java
57 lines (46 loc) · 998 Bytes
/
Bowler.java
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
/*
* Bowler.java
*
* Version:
* $Id$
*
* Revisions:
* $Log: Bowler.java,v $
* Revision 1.3 2003/01/15 02:57:40 ???
* Added accessors and and equals() method
*
* Revision 1.2 2003/01/12 22:23:32 ???
* *** empty log message ***
*
* Revision 1.1 2003/01/12 19:09:12 ???
* Adding Party, Lane, Bowler, and Alley.
*
*/
/**
* Class that holds all bowler info
*
*/
public class Bowler {
private String fullName;
private String nickName;
private String email;
public Bowler( String nick, String full, String mail ) {
nickName = nick;
fullName = full;
email = mail;
}
public String getNickName() {
return nickName;
}
public String getFullName ( ) {
return fullName;
}
public String getEmail ( ) {
return email;
}
public boolean equals ( Bowler b) {
return nickName.equals(b.getNickName())
&& fullName.equals(b.getFullName())
&& email.equals(b.getEmail());
}
}