I want to make an array of size 150 of the class Info
public class Info {
    int Group;
    String Name;
}
But I have the exception occur after
 public class Mover {
        static Info[] info=new Info[150];
            public static void main(String[] args) {
            info[0].Group=2;//I get error here
        }
}
I'm not sure if there is a better way to do what a want to do, but I don't want to use a multidimensional array. I'm simply trying to add information to the group, so I'm confused.
 
     
     
    