Computer Science Canada Novice Question: Printing "/\" in Java |
Author: | Shiro786 [ 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.) |
Author: | inflamous [ 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. |
Author: | richcash [ 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. |
Author: | Shiro786 [ 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. ;_; |