Difference between revisions of "Special Character"

From Progzoo
Jump to navigation Jump to search
Line 9: Line 9:
 
}}
 
}}
 
</shell>
 
</shell>
<prog>String s = "Tab\tQuote \"New line\n Back-slash\\";
+
<prog>String s = "Tab\tQuote \"New line\n Back-slash\\\\";
 
System.out.println(s);
 
System.out.println(s);
 
</prog>
 
</prog>
 
</question>
 
</question>

Revision as of 19:18, 13 January 2008

You can build a string using format. The % values are substituted.


[Font] [Default] [Show] [Resize] [History] [Profile]