From 73723669c515936863f8bfd849c4476ea42bdc23 Mon Sep 17 00:00:00 2001 From: o-matsuda <26-o-matsuda-stellatecnica@it-college.co.jp> Date: Mon, 14 Sep 2026 15:02:58 +0900 Subject: [PATCH] =?UTF-8?q?=E6=AE=B5=E9=9A=8E=EF=BC=92=E5=AE=8C=E4=BA=86?= =?UTF-8?q?=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- em-oop/src/BasicCheck2.java | 13 +++++++++++++ em-oop/src/Student.java | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 em-oop/src/BasicCheck2.java create mode 100644 em-oop/src/Student.java diff --git a/em-oop/src/BasicCheck2.java b/em-oop/src/BasicCheck2.java new file mode 100644 index 0000000..27302ef --- /dev/null +++ b/em-oop/src/BasicCheck2.java @@ -0,0 +1,13 @@ + +public class BasicCheck2 { + + public static void main(String[] args) { + // TODO 自動生成されたメソッド・スタブ + Student student = new Student(); + student.studentId = 1; + student.name = "鈴木一郎"; + student.printProfile(); + } + + +} diff --git a/em-oop/src/Student.java b/em-oop/src/Student.java new file mode 100644 index 0000000..1e4ae67 --- /dev/null +++ b/em-oop/src/Student.java @@ -0,0 +1,9 @@ + +public class Student { + int studentId; + String name; + + void printProfile() { + System.out.println("学籍番号;"+this.studentId+" 名前;"+this.name); + } +}