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!
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
Alexandru Pascan
2,612 PointsCan someone explain me where is the misstake?
Finally, uncomment the addPost method in Forum.java. Then for the last task, uncomment the main method in Example.java fixing the bugs as you go to use the new working code. For the forum post title and description, use that to shout out about how it feels to complete this challenge.
PS. You're amazing. <pre> Forum forum = new Forum("Java"); // Take the first two elements passed args User author = new User("Craig","Dennis"); //Add the author, title and description ForumPost post = new ForumPost( author ,"Hello World", "About my life"); forum.addPost(post); </pre>
1 Answer

Gerrit Verhaar
17,742 PointsHi Alexandru,
you need to change this line: User author = new User("Craig","Dennis");
pass in args[0] and args[1] as arguments to User. Thus you pass through the first (number 0) and the second (number 1) from main to User.
User author = new User(args[0], args[1]);
Gloria Dwomoh
13,104 PointsGloria Dwomoh
13,104 PointsHi Alexandru, you'll have to link the other classes for us to be able to help you more. There might be a connection of your mistake and that. Link the other classes and the challenge.