init
This commit is contained in:
20
Question11-ConstructorAndStatic/src/Toast.java
Normal file
20
Question11-ConstructorAndStatic/src/Toast.java
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
public class Toast {
|
||||
|
||||
// TODO Jam型のフィールドjamを作成してください
|
||||
|
||||
/*
|
||||
* TODO 以下のコンストラクタを作成してください
|
||||
* 引数 :Jam型 jam
|
||||
* 処理 :引数のjamをjamフィールドに代入する
|
||||
*/
|
||||
|
||||
/*
|
||||
* TODO tasteメソッドを作成してください
|
||||
* 引数 :なし
|
||||
* 戻り値 :なし
|
||||
* 処理 :xx 味のトーストです。 出力する
|
||||
* ※ xxにはjamフィールドのmaterialの値が入る
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user