Characters and Strings in Java
Original link: https://www.lifengdi.com/archives/course/java/3913 In Java, characters and strings are two different types. Character type The character type char is a basic data type, which is an abbreviation for character. A char holds a Unicode character: char c1 = ‘A’; char c2 = ‘中’; Because Java always uses Unicode to represent characters in memory, an English …