瀏覽代碼

Merge 86eb1d98f16ad1946f3470c5fd3bb63acd928d1d into 0398a33fe29ba56aa3525b435a830d270322df8e

lenin672 7 年之前
父節點
當前提交
eb3f5cde12
共有 1 個檔案被更改,包括 20 行新增0 行删除
  1. 20
    0
      initial/Greetings.java

+ 20
- 0
initial/Greetings.java 查看文件

@@ -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
+}