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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Sharena Bess](https://secure.gravatar.com/avatar/b65eb2363997a3344a23bd31deb8cf0d?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Sharena Bess
798 PointsI am not seeing my name change from Craig, even though I am typing it as console.printf("%s is learning Java\n", first);
I am not seeing my name change from Craig, even though I am typing it as console.printf("%s is learning Java\n", firstName); it is still showing the old string using the old name even though I clear it and run javac Introductions.java java Introductions... is it an error on my end or the system? Ive closed and opened console and saved the changes but the code still says (Craig
2 Answers
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsThe name that will be shown is determined by the line that assigns "firstName", which is done before the line containing the "printf".
![Brad Gorman](https://secure.gravatar.com/avatar/47db1c0151a923b52e6938af5af15dd7?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Brad Gorman
950 PointsIt looks like you forgot to assign the variable to the string on the line before this one.
An example of this would be something like: String firstName = "Brad";
The data type is String (the first thing listed in the code above) and the variable name you're assigning is firstName. What you follow it with, with the = afterward is the name you want it to assign to that variable surrounded by quotes.
Hope this helps! :)