الرجوع
تسجيل الدخول
أنت تتصفح نسخة مؤرشفة من الموقع اضغط للانتقال إلى الموقع الجديد بكامل المزايا
class Player {
    String name;
    Player(String name) {
        this.name = name;
    }
}

public class Game {
    public static void main(String[] args) {
        Player[] team = new Player[5];
        System.out.println(team[0].name);
    }
}

What is the issue with this code?