Browse Source

Create Greetings.java

lenin672 7 years ago
parent
commit
86eb1d98f1
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      initial/Greetings.java

+ 20
- 0
initial/Greetings.java View File

@@ -0,0 +1,20 @@
1
+package hello;
2
+
3
+public class Greeting {
4
+
5
+    private final long id;
6
+    private final String content;
7
+
8
+    public Greeting(long id, String content) {
9
+        this.id = id;
10
+        this.content = content;
11
+    }
12
+
13
+    public long getId() {
14
+        return id;
15
+    }
16
+
17
+    public String getContent() {
18
+        return content;
19
+    }
20
+}