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


Can't seem to operate "Hello World" correctly even after copying the code verbatim.

Hello everyone,

When watching the first video to print "Hello World" for java I can't get the code to compile right. It just says:

treehouse:~/workspace$ javac Introductions.java                                                                                                                          
Introductions.java:8: error: cannot find symbol                                                                                                                          
        console.prinf("Hello, my name is Derek");                                                                                                                        
  symbol:   method prinf(String)                                                                                                                                         
  location: variable console of type Console                                                                                                                             
1 error                                                                                                                                                                  

I looked at the example that Craig wrote and it looks like everything is written verbatim. Can someone help me out?

2 Answers

You're really close. There is just a small typo in your code. look over the line console.prinf('Hello, my name is Derek'); again. Do you see it? You are missing the t. Try again with the method printf.

Harry James
Harry James
14,780 Points

Changed Comment to Answer

I found it Thank you so much!

Harry James
Harry James
14,780 Points

Glad to hear Amber Camus was able to help out here! :)

Go ahead and mark her answer as the Best Answer so that other users know that this question has been solved, and also credit Amber for her answer!