blob: ec842d65e54ef67c9ecc25b1894a1808fd2f481e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package main.java.twitapp.services;
import java.util.Date;
public class Twit {
private String twit;
private final Date timestamp;
public Twit(String twit){
this.twit = twit;
timestamp = new Date();
}
public String toString(){
return twit;
}
public Date getTimestamp(){
return timestamp;
}
}
|