2段階目完了しました。
This commit is contained in:
14
em-oop/src/BasicCheck2.java
Normal file
14
em-oop/src/BasicCheck2.java
Normal 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
6
em-oop/src/Student.java
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
public class Student {
|
||||
int studentId;
|
||||
String name;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user