Ch

Chars in Java

16 exercises

About Chars

chars are generally easy to use. They can be extracted from strings, added back (by means of a string builder), defined and initialised using literals with single quotes, as in char ch = 'A';, assigned and compared.

The Character class encapsulates the char value.

Edit via GitHub The link opens in a new window or tab

Learn Chars