-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trip.java
65 lines (48 loc) · 1.17 KB
/
Trip.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
58
59
60
61
62
63
64
65
package com.example.documems;
public class Trip {
private String name;
private String travelers;
private String dates;
private int num_days;
private String memo;
public Trip(String Name, String Travelers, String Dates, int Num_days, String Memo) {
name = Name;
travelers = Travelers;
dates = Dates;
num_days = Num_days;
memo = Memo;
}
public void setName(String newName) {
name = newName;
}
public void setTravelers(String newTravelers) {
travelers = newTravelers;
}
public void setDates(String newDates) {
dates = newDates;
}
public void setNum_days(int newNum_days) {
num_days = newNum_days;
}
public void setMemo(String newMemo) {
memo = newMemo;
}
public String getName() {
return name;
}
public String getTravelers() {
return travelers;
}
public String getDates() {
return dates ;
}
public int getNum_days() {
return num_days;
}
public String getNum_days_String(){
return "" +num_days;
}
public String getMemo() {
return memo;
}
}