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.
Actually, I don"t know how to start to write code , i want to know,is it necessary to mention class or start direct
plz tell me from where do I have to start my code
// I have setup a java.io.Console object for you named console
No for these basic exercises you don't need to include any of the boilerplate code. So no class or methods or anything like that needed. They also instantiate the
console object for you automatically so you don't have to worry about that.
You only need to type code that does the exact thing the challenge is asking for. So for the first task you only need to type a single line of code that creates a variable called
firstName, and sets it equal to a string that contains your name.
thanks andren...it helps me alot