From the Java Language Specification (third edition), section 3.10.5:
StringLiteral:
" StringCharactersopt "
StringCharacters:
StringCharacter
StringCharacters StringCharacter
StringCharacter:
InputCharacter but not " or \
EscapeSequence
Can someone please help me understand this syntax pattern?
What could xx: " xxxopt" mean?
It means a
StringLiteralis a double-quote, an optionalStringCharacterstoken, and a double quote. “opt” means optional.StringCharactersis defined as one or moreStringCharactertokens.StringCharacteris either anInputCharacter(defined elsewhere) except for a double-quote or a backslach; or anEscapeSequence(also defined elsewhere)