So I declared this class in my program, I am basically trying to use it as a 'struct'. I am trying to create an array of type 'Info' which will store information about different people, so I can use it later. The program currently compiles however, I am getting a NullPointerException. Can anyone please help me understand how to fix this and why this is happening? ( i know that it is probably b/c something is not initialized correctly, or something is equal to null such as my array maybe?)
I am really having a hard time fixing this, any help will be greatly appreciated!
Joined: Jan 27, 2011
Also, how do I give the passenger class a constructor? Can someone please give me a simple example?