java - Printing backslashes issue -


this question has answer here:

i'm facing problem code

system.out.println("\\---------------------//"); 

it not print this

\\---------------------// 

but this

\---------------------//         

\ has escaped. therefore, print 2 \ need :

system.out.println("\\\\---------------------//"); 

Comments

Popular posts from this blog

python - Creating a new virtualenv gives a permissions error -

facebook - android ACTION_SEND to share with specific application only -

go - Idiomatic way to handle template errors in golang -