CJCoding With Joseph
15per day

Character Printf

Create a variable char symbol = '*'; and use System.out.printf to display it in the sentence:

My char is: *
(followed by a newline character)

**Important:** The output MUST end with a newline character. Use %n in printf or \n:
- System.out.printf("My char is: %c%n", symbol);
- OR System.out.printf("My char is: %c\n", symbol);

Expected Output:

My char is: *
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.