Novice Question: Printing "/\" in Java
Author |
Message |
Shiro786
|
Posted: 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.) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
inflamous
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
richcash
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Shiro786
|
Posted: 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. ;_; |
|
|
|
|
![](images/spacer.gif) |
|
|