I am attempting to assign a value to an array object like this:
public class Players {
String Name;
}
Players[] player = new Players[10];
String name = Mike;
player[1].Name = name;
I am getting a NullPointerException and am not sure why. What could be causing this?
Player, since each instance is only one player..