RE: Coding challenge #2 We need to go deeper

You are viewing a single comment's thread from:

Coding challenge #2 We need to go deeper

in programming •  7 years ago  (edited)

Hi @btcworker, the issue is that:

private static ArrayList"Movie" movieA;

Is not initialized you have to do:

private static ArrayList"movie" movieA = new Arraylist""();

Additionally, I would create the class "Movie" in a separate file and call it from another file with the main class.

This is not only important for readability but will also help us to extend the program later on.

Keep on coding!

P.S: I had to remove the > and the < tags because steemit doesn't like them =)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!