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 trialDan Richards
39 PointsHow do i begin this?
I dont even know how to begin this exercise, any help please?
// I have imported java.io.Console for you. It is a variable called console.
1 Answer
Kristian Terziev
28,449 PointsIf you've watched the videos up to this challenge, you should know how to declare a variable. That happens like this
<access level> <type> <name>[ = <value>]; // you may skip what's inside the square brackets
Next thing you need to know is what camel-casing is. When you pick a name for your variable it may be consisted of more than one word. Since you can't use space you're forced to merge those words into a single one. In order to make everything easier to read and work with, every next word is with an upper case. For example if you had a variable that would store the first day of the week you may call it firstDay or firstDayOfWeek or whatever you want. Now how do you think you'll make the words first name into a singe variable?
I'm not going to give you the code needed to pass the challenge simply to make it hard for you. There's no use in copying a code I (or someone else) gives and passing the challenge without actually knowing how. Follow the guidelines I gave you above and try to come up with the code on your own.
Feel free to ask for help anytime you need it.