Question from a Java challenge. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Question from a Java challenge.

Why is '/n ' a char, but '13' isn't ?

13th Jul 2018, 2:00 PM
王少甫
王少甫 - avatar
4 Answers
13th Jul 2018, 2:34 PM
Mert Yazıcı
Mert Yazıcı - avatar
0
If you really studied the Java tutorial You'd have known that "char" are used to denote a SINGLE symbol. 13 is not a Char because it's made up of 2 individual characters :1 and 3
13th Jul 2018, 2:33 PM
Dlite
Dlite - avatar
0
Yahiko Well i suopse that /n is made up by 2 characters either?
14th Jul 2018, 5:24 AM
王少甫
王少甫 - avatar
0
Mert Yazıcı so escape characters are also a kind of character?
14th Jul 2018, 5:29 AM
王少甫
王少甫 - avatar