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
Thomas Verst
725 PointsJava question
Hi! I wanted to create a new class but I don't know what to do from this point forward. ´´´java new class prisoner String prisoner; String jail; boolean penalty; void free; void getArrested(); void jailbreak(); void payBail; ´´´
That's the "code". So, a new prisoner comes in, and I he needs to have a name. Then if his penalty is over the number lets say 05, from 10 he gets arrested, if not, he is free to go. If he gets arrested he must have the option to "jailbreak" or to pay the Bail, how to do I do that? Sorry, I know it is a lot to ask, but I would appreciate a lot if someone helped me. Thanks, Thomas