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 Strings, Variables, and Formatting

idk whats wrong

idk whats wrong with my code

Name.java
// I have setup a java.io.Console object for you named console
String firstName = "Ramzy";
Console.printf("%s can code in Java!", firstName);
Simon Coates
Simon Coates
28,694 Points
JavaTester.java:74: error: cannot find symbol
Console.printf("%s can code in Java!", firstName);
^
  symbol:   variable Console

The text "cannot find symbol" means that the compiler doesn't know what something is. This is a pretty common error and one of the obvious causes is spelling mistakes (here as andren noted, incorrect case). FYI, java errors are often pretty specific and debugging is a key skill. A lot of people new to programming can be too intimidated by the weird messages to notice they're actually often more helpful than obscure.

1 Answer

andren
andren
28,558 Points

The problem is that you have capitalized the C in console. Capitalization is pretty essential to get right in programming. If you write it without capitalization like this:

String firstName = "Ramzy";
console.printf("%s can code in Java!", firstName);

Then you'll be able to complete the challenge.