Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
char is a Java type that represents a single character (a single letter).
char
chars go in between single quotes '
'
For example, we can make a char variable like this:
char grade = 'A'; char direction = 'n';