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 trialDerrick Bonner
Courses Plus Student 65 PointsDuring challenge task 1 I enter string firstName = "Derrick"; but keep getting a error saying cannot find symbol.??
javaTester. java:53: error: cannot find symbol
// I have setup a java.io.Console object for you named console
string firstName = "Derrick";
4 Answers
William Li
Courses Plus Student 26,868 PointsNo, it's not weird. Java has 8 primitive data types.
- byte
- short
- int
- long
- float
- double
- boolean
- char
they are all in lower-capped.
though it's used very frequently, String isn't one of the primitive data type, String is a built-in class, and the code convention in Java is that class name begins with its first letter capitalized.
Ken Alger
Treehouse TeacherDerrick;
Welcome to Treehouse!
I wrote a little bit about the Cannot Find Symbol error on this post. You might take a look for your own future knowledge and Java errors.
Ken
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 PointsHello, java is very weird about its character types. As the comment suggests just capitalize String. Should do the ticket.
Let me know if this helps.
Derrick Bonner
Courses Plus Student 65 PointsThanks for the info guys. that did the trick!
Dylan Espey
10,578 PointsDylan Espey
10,578 PointsI believe "string" needs to be capitalized. So...
String firstName = "Derrick";
It's one of the weird exceptions in Java.