Java Java Basics Getting Started with Java IO

Harmeet Chahal
Harmeet Chahal
64 Points

Declare another variable, naming this one the camel-cased version of "last name". Use console.readLine to store the user

Declare another variable, naming this one the camel-cased version of "last name". Use console.readLine to store the user's last name into this new variable.

IO.java
// I have imported java.io.Console for you.  It is a variable called console.
String lastName = console.readLine("I love icecream "); 
console.printf("My name is Harmeet Chahal \n");

String firstname = console.readLine("What is your name?  ");

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,589 Points

What you have for task 2 will pass. But the checker is verifying task 1 before task 2. Here is where you have an error: firstName needs to be camel case.