mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-02-04 00:30:47 +08:00
23 lines
387 B
Plaintext
23 lines
387 B
Plaintext
""
|
|
''
|
|
"fo\"o"
|
|
'fo\'o'
|
|
"foo\
|
|
bar"
|
|
'foo\
|
|
bar'
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["string", "\"\""],
|
|
["string", "''"],
|
|
["string", "\"fo\\\"o\""],
|
|
["string", "'fo\\'o'"],
|
|
["string", "\"foo\\\r\nbar\""],
|
|
["string", "'foo\\\r\nbar'"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for single-quoted and double-quoted strings. |