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 Java Basics Getting Started with Java IO

how do I do this?

I'm trying to learn java and I have hard time understanding the question and how to answer it.

IO.java
// I have imported java.io.Console for you.  It is a variable called console.
import java.io.console,

  public class Introductions{
    public static void main(string[] args) {
      console.console = system.console();
   string firstName = console.readLine("what is your name?  ");

      console.printf(" hello, my name is %s\n, firstName);
                     }
                     }
Jian Chen
Jian Chen
4,938 Points

Hey Smit, It appears that you are having trouble getting started in picking up the concepts. I would highly suggest that you rewatch the videos from the first one again. But this time, try to break down the purpose and logic behind every line of code that Craig uses and explains in the videos as you follow along with him. This is also the method I used to overcome my struggles at the beginning when I started learning java. If there are any key concepts about the code that stumps you, I would be glad to clarify it for you (just please be specific about the part/idea that confuses you).

Antonio De Rose
Antonio De Rose
20,885 Points

I would agree with Jian on that, rewatch the video, if you feel, the video is fast, you always have the luxury, to reduce the pace.

thank you guys for the help!