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.

Java Java Basics Getting Started with Java IO

James Thomas
James Thomas
6,452 Points

Can't pass this "coding Challenge" no indication of what to do

I'm on the "Data input" or "receiving data" section of the java basics course. I already know all of this code, I am simply brushing up on my java quickly before jumping into the Android course. Ten minutes in and this site is an Utter let down. I have literally no idea how I can pass this question. It won't let me skip (maybe it will but won't tell me how).

I could write this program in thirty seconds. The issue is I keep getting compile error even though my code is fine. It's that I have absolutely no idea (due to there being no indication what so ever) of what to include in my code.

Do they just want me to declare a string and get the user to input it? Do they want me to go all the way from import to public static void main(String[] args) and include all curly braces OR shall I initialize the class constructor or like whatever I don't know but I've tried every single way and this hideous layout is getting me nowhere.

Any help appreciated please, I've never been so annoyed and disillusioned by a course or training app within such a short time in my entire life.

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,258 Points

they want just what it says, no more no less, each task is one line of code, nothing fancy, no psvmsa etc, no importing. you're just using the console object it provides to read and print.

James Thomas
James Thomas
6,452 Points

Superb. Exactly the explanation I needed. Thank you.