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

hallie walck
hallie walck
106 Points

What am I doing wrong?

Define a String variable named firstName that stores your name.

Set the value to your name. <--- question
// I have setup a object for you named console
String firstname = "Hallie";

1 Answer

Steven Parker
Steven Parker
182,603 Points

The instructions ask for "firstName" (with a captial "N"), but the variable defined here is "firstname" (lower-case "n").