Please enable JavaScript to use CodeHS

CodeHS Glossary


char Java

char is a Java type that represents a single character (a single letter).

chars go in between single quotes '

For example, we can make a char variable like this:

char grade = 'A';
char direction = 'n';