java - Printing backslashes issue -
this question has answer here:
- what backslash character (\\)? 6 answers
i'm facing problem code
system.out.println("\\---------------------//");
it not print this
\\---------------------//
but this
\---------------------//
\
has escaped. therefore, print 2 \
need :
system.out.println("\\\\---------------------//");
Comments
Post a Comment