Java Java Basics Getting Started with Java Strings, Variables, and Formatting

How do I create a string?

Name.java
// I have setup a java.io.Console object for you named console
String FirstName= "James";

1 Answer

Gabriel Pierce-Lackey
MOD
Gabriel Pierce-Lackey
Treehouse Moderator 10,993 Points

Your variable name cannot start with an capital letter. Change the "f" in FirstName, to an undercase "f" like firstName