The Artima Developer Community
Sponsored Link

Java Answers Forum
Basic Java Programmin help

1 reply on 1 page. Most recent reply: Mar 21, 2003 5:15 AM by Rahul

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Just

Posts: 6
Nickname: rusty
Registered: Mar, 2003

Basic Java Programmin help Posted: Mar 20, 2003 5:39 PM
Reply to this message Reply
Advertisement
Dear all

I?m having trouble with Java Programming. I?m using PC GRASP
I?m trying to display/print the following line on the screen:

Using: system.out.print1n
I Know ?\ \ will display \
I also know ? / \ \ ? will display / \

How can I display ? / ?
Or more importantly how can I display the following line
( \ _______ / )

Please Help


Rahul

Posts: 52
Nickname: wildhorse
Registered: Oct, 2002

Re: Basic Java Programmin help Posted: Mar 21, 2003 5:15 AM
Reply to this message Reply
You could use something like this:

System.out.println("\\__________/");

Note that in Java, '\'(backslash) is an escape character while '/' (forward slash) is not.

Flat View: This topic has 1 reply on 1 page
Topic: Help quickly please - should be simple Previous Topic   Next Topic Topic: Cross Context calls in Tomcat??

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use