I am working on a code for one of my projects and it requires me to write an array. How do I achieve comment 5a? And did I get comment 5 right?
// 4. declare an array of players
Player [] team = new Player[];
// 5. loop over teamsize
for( int index = 0; index < team.length; index++)
// 5a. instantiate the i'th team member