How to represent empty char in Java Character class

后端 未结 16 878
遥遥无期
遥遥无期 2020-11-29 02:11

I want to represent an empty character in Java as \"\" in String...

Like that char ch = an empty character;

Actually I want to rep

16条回答
  •  情深已故
    2020-11-29 02:52

    You can't. "" is the literal for a string, which contains no characters. It does not contain the "empty character" (whatever you mean by that).

提交回复
热议问题