CJCoding With Joseph

Print a Char Variable

Declare a char variable named grade holding the letter A, then print it with System.out.println():

A

A char literal uses single quotes.

Expected Output:

A
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.