Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects (Retired) Delivering the MVP Wrapping up

K W
K W
3,736 Points

4th task I don't understand

I completed 3 out of 4 task, they make sense to me.I ve been reading post that say use User author = new User(args[0], args[1]); ??????????? where in this code challenge did we store anything in an array and if the User constructor calls for 2 strings why am i to pass two elements in an array? The uncommenting part i understand.

K W
K W
3,736 Points

no I still don't see the correlation between args and author, I will go back and watch the videos I must have missed something, thanx for responding sir.

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

This is the way I am calling the program. It's coming in from the command line. I am passing values in, so args is present and filled when your code runs.

Make sense?