init
This commit is contained in:
21
Question10-InstanceAndClass/src/PTra10_02.java
Normal file
21
Question10-InstanceAndClass/src/PTra10_02.java
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* PTra10_02.java
|
||||
* 作成 Rhizome
|
||||
*------------------------------------------------------------
|
||||
* Copyright(c) Rhizome Inc. All Rights Reserved.
|
||||
*/
|
||||
public class PTra10_02 {
|
||||
public static void main(String[] args) {
|
||||
// ※ この問題はUserクラスを使用して解いてください。
|
||||
// TODO User型変数 user を宣言してください。
|
||||
|
||||
// TODO 変数 user に userインスタンスを代入してください。
|
||||
|
||||
// TODO 変数 userのidフィールドに 2000 を代入してください。
|
||||
|
||||
// TODO 変数 userのnameフィールドに 佐藤二郎 を代入してください。
|
||||
|
||||
// TODO 変数 userの printProfileメソッド を呼び出してください。
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user