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

why we cant use console in class file

i creadteda file named "ssss" as my class file. I even imorted the console...then to not able to use it why??/////

First of all try using more speaking names for classes! Even if it's just for trying things out.

What do you want to achiev with your program? How does your code look like?

Maybe post a snipped of it so we can help you better :)

1 Answer

I was thinking to make a interface keeping a patient coming to the doctor for the checkup . So I made a class which I persuaded a an object so I declared the behaviour of. It as the name of patient and diseases but I want it to be user defined that's what I was trying