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

Having trouble defining a string variable named firstName that stores my name, and setting the value to my name.

I am having trouble understanding how to do this within the workspace editor, it's the first real challenge in the getting started with java course and I feel like I'm over-looking something very small. but I don't know what it is I am overlooking.

I have String.firstName = "Donald"; and I feel as if it is correct, I just don't know how to properly manipulate the editor

1 Answer

Hey Donald!

The code you have is almost 100% perfect you just need to replace the period between String and firstName with a space.

-Luke

Thanks so much Luke for going out of your way to answer my question

Hey, no problem! Best of luck with your course Donald! :)