CJCoding With Joseph
15per day

String Variable Printf

Create a String variable with the value "Alice" and use System.out.printf() to display it in the sentence:

My name is Alice

Do not type the name directly in the printf statement. Instead, use the String variable you created with the %s format specifier.

Expected Output:

My name is Alice
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.