Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Novice Question: Printing "/\" in Java
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Shiro786




PostPosted: Sat Jun 09, 2007 8:54 am   Post subject: Novice Question: Printing "/\" in Java

It's me again, for some more basic questionings again.

Very basic question, I know because other people are talking about how to implement friction XD

So, do you guys know how to do it? Thanks in advance.

(It's for a textual header for a Summtive/Culminating Activity Project that is due on Monday.)
Sponsor
Sponsor
Sponsor
sponsor
inflamous




PostPosted: Sat Jun 09, 2007 10:28 am   Post subject: RE:Novice Question: Printing "/\" in Java

I remember having to do that before, i just used ASCII values to print the "\" out. The "/" can be outputted manually.
richcash




PostPosted: Sat Jun 09, 2007 1:44 pm   Post subject: Re: Novice Question: Printing "/\" in Java

System.out.println("/\\"); will output what you want.

The backslash is the escape character in java. Go here to see more of its uses.
Shiro786




PostPosted: Sat Jun 09, 2007 6:33 pm   Post subject: Re: Novice Question: Printing "/\" in Java

Hehe! Sweet! Thanks a shiz load rich cash, that totally helped. Now to finish this damned thing and study for my Math Exam. ;_;
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: