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 trialsmit patel
307 Pointshow do I do this?
I'm trying to learn java and I have hard time understanding the question and how to answer it.
// 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);
}
}
Antonio De Rose
20,885 PointsI 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.
smit patel
307 Pointsthank you guys for the help!
Jian Chen
4,938 PointsJian Chen
4,938 PointsHey 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).