-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFriendship.java
More file actions
38 lines (35 loc) · 943 Bytes
/
Friendship.java
File metadata and controls
38 lines (35 loc) · 943 Bytes
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
import java.sql.*; //import the file containing definitions for the parts
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Date;
import oracle.jdbc.*; //needed by java for database connection and manipulation
public class Friendship{
private String friendDate;
private int friend1;
private int friend2;
private boolean friendStatus;
public Friendship(String date, int friend1, int friend2, boolean status){
this.friendDate = date;
this.friend1 = friend1;
this.friend2 = friend2;
this.friendStatus = status;
}
public String getFriendDate(){
return friendDate;
}
public int getFriendOne(){
return friend1;
}
public int getFriendTwo(){
return friend2;
}
public boolean isAccepted(){
return friendStatus;
}
}