We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d97946 commit 5574a7eCopy full SHA for 5574a7e
yoonexample/src/main/java/table/Person.java
@@ -0,0 +1,31 @@
1
+package table;
2
+
3
+public class Person {
4
5
+ private final int id;
6
+ private final String name;
7
+ private final String address;
8
9
+ public Person(int id, String name, String address) {
10
+ this.id = id;
11
+ this.name = name;
12
+ this.address = address;
13
+ }
14
15
+ public void printPersonInfo() {
16
+ System.out.println(
17
+ "ID: " + this.getId() + " / 이름: " + this.getName() + " / 주소: " + this.getAddress());
18
19
20
+ public int getId() {
21
+ return id;
22
23
24
+ public String getName() {
25
+ return name;
26
27
28
+ public String getAddress() {
29
+ return address;
30
31
+}
0 commit comments