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

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -