Java Java Basics Getting Started with Java IO

I don't know why is there a problem with the period in (console.printf)

can you please help me in my last assignment .thanks in advance

IO.java
// I have imported java.io.Console for you.  It is a variable called console.
String firstName= console.readLine("whats your name");
String lastName= console.readLine("shalaby");
console.Printf= ("lastName, First name: %s");
Andy Stevens
Andy Stevens
8,701 Points

You need to check your syntax, is the equals operator needed? Also is lowercase or uppercase causing an issue?

Botan Mustafa
Botan Mustafa
2,653 Points

The ā€˜Cā€™ from console should be capital.