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

Joseph Saika
Joseph Saika
2,625 Points

How do i call for the printf method?

How do i call for the printf method?

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

1 Answer

Yusuf Mohamed
Yusuf Mohamed
2,562 Points

Do you mean like this ?

console.printf("%s", firstName);