Files
em-oop/Student_20261014_hirayama.java
2026-10-14 17:26:07 +09:00

14 lines
236 B
Java

public class Student {
//フィールドの宣言
String name;
int age;
//メソッドの定義
public void intoroduce() {
System.out.println("私の名前は" + this.name);
System.out.println("年齢は" + this.age);
}
}