Files
java-question/Question19-Collection/src/PTra19_02.java
2026-09-09 08:34:32 +09:00

46 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* PTra19_02.java
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
public class PTra19_02 {
public static void main(String[] args) {
// TODO Player型を格納するArraylistを変数名 playerList で作成してください。
/*
* TODO 以下の情報を持つインスタンスを3つ作成してください
*
* -------1人目---------
* ポジション:MF
* 名前 :佐川真司
* 国 :日本
* 所属チーム:ドルトムント
*
* -------2人目---------
* ポジション:DF
* 名前 :永元佑都
* 国 :日本
* 所属チーム:インテル
*
* -------3人目---------
* ポジション:MF
* 名前 :本田健佑
* 国 :日本
* 所属チーム:ACミラン
*/
// TODO 作成したインスタンスを全てplayerListに追加してください
/*
* TODO playerListの情報を全て出力してください。(拡張for文を使用する事)
*
* ※ 以下のように標示されれば正解
* MF,佐川真司,日本,ドルトムント
* DF,永元佑都,日本,インテル
* MF,本田健佑,日本,ACミラン
*/
}
}