For Programmers: Free Programming Magazines  


Home > Archive > Java Help > February 2007 > Re: printing //////////////\\\\\\\\\\\\\ in JAVA









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: printing //////////////\\\\\\\\\\\\\ in JAVA
Dustan

2007-02-22, 8:11 am

On Feb 20, 9:46 am, Solar^ <nos...@nospam.com> wrote:
> Hope that someone can help. How does one print these reserved slashes
> in Java?
> Regards,
> R. Stone


By using the escape notation, of course!

System.out.println("\\") // a single backslash.
System.out.println("/") // a single forward slash, which doesn't need
to be escaped.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com