s*i
2 楼
String b = "\u000A"; is syntax error.
String b = "\u0009"; is right,
String b = "\u001A"; is right too.
why?
How to input "\u000A" into a variable?
thx
String b = "\u0009"; is right,
String b = "\u001A"; is right too.
why?
How to input "\u000A" into a variable?
thx
o*e
4 楼
"\n"
who cares why, it's very special case.
but there's one paragraph just to explain
this in the java spec if you want to know.
【在 s*****i 的大作中提到】
: String b = "\u000A"; is syntax error.
: String b = "\u0009"; is right,
: String b = "\u001A"; is right too.
: why?
: How to input "\u000A" into a variable?
: thx
who cares why, it's very special case.
but there's one paragraph just to explain
this in the java spec if you want to know.
【在 s*****i 的大作中提到】
: String b = "\u000A"; is syntax error.
: String b = "\u0009"; is right,
: String b = "\u001A"; is right too.
: why?
: How to input "\u000A" into a variable?
: thx
s*d
7 楼
The answer is here:
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#231571
【在 s*****i 的大作中提到】
: The problem is you can not input the unicode from
: "\u000A"
: "\u000B"
: "\u000C"
: "\u000D"
: ...
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#231571
【在 s*****i 的大作中提到】
: The problem is you can not input the unicode from
: "\u000A"
: "\u000B"
: "\u000C"
: "\u000D"
: ...
m*t
9 楼
相关阅读