java - Change how the compiler parses the string -


this question has answer here:

in c#, @ sign used before string literals change how compiler parses string. there counterpart of in java? using concatenation confuses me sometimes.

strings cannot on multiple lines in java. editor may automatically wrap them, string cannot on multiple lines - is, don't hit enter in middle of string literal.

if want string contain new line, use \n ex

system.out.println("line 1\nline 2"); 

results in

line 1 line 2 

Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -