Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?