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 Delivering the MVP Using Method Overloading

Adinel Berehorschi
Adinel Berehorschi
1,771 Points

My code just won't work

I have some problems with my Game class. Is there any opportunity to get a backup code of my Work Space for each lesson?

If you share your workspace here we can look at getting a fix for you. Hit the 'fork' icon and post the link and that should let you copy the URL into here.

Simon Coates
Simon Coates
28,694 Points

I think you can download or fork your workspace (from https://teamtreehouse.com/workspaces ). Should allow you to have an earlier copy of your code. If you want to share code with other users, you should look at 'workspace snapshots' (see https://teamtreehouse.com/library/previews-and-snapshots )

I think the changes you make to the workspace persist so you might have to visit the workspaces link, as above, and delete the one you've been using. Then, when you reopen the workspace from the video page, you'll be back at the beginning ready to start again.

4 Answers

OK - 5 errors:

1st. In Game.java at line 23, close the method with a curly brace after return letter.

Next there was a similar issue then you'd called a method chatAt rather than charAt - but here's a working version of your code ... it's easier to just send this back so you can get working on it.

https://w.trhou.se/9f0pcx4eus

Steve.

Adinel Berehorschi
Adinel Berehorschi
1,771 Points

Thank you very much! Finally I can continue my work!

No problem! Good luck!

Adinel Berehorschi
Adinel Berehorschi
1,771 Points

Thank you, Steve! There you have the link. Thank you in advice, I really got stuck and I do need it to continue my courses. https://w.trhou.se/sx2orwl9tn

Sean M
Sean M
7,344 Points

If you copy and paste your solution, I would be more than happy to try and assist.

This was solved some time ago and is marked as such. There will be lots of other questions needing a solution on these pages, though!

Steve.

In your workspace, hit the 'camera' icon, top-right. Then click on 'Take Snapshot'. That creates a new URL - share that here.