2段階目完了しました。

This commit is contained in:
s-ohasi
2026-09-14 17:19:34 +09:00
parent e8b163e1b6
commit e6753a16f4
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
public class BasicCheck2 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Student st = new Student();
st.studentId=1;
st.name="鈴木一郎";
System.out.println("学籍番号:" + st.studentId + " 名前:" + st.name);
}
}

6
em-oop/src/Student.java Normal file
View File

@@ -0,0 +1,6 @@
public class Student {
int studentId;
String name;
}