Special Characters and Clear Screen
Author |
Message |
Neo
|
Posted: Sun Jan 23, 2005 11:28 pm Post subject: Special Characters and Clear Screen |
|
|
How would I use the "symbol" font in Java? If you don't know what I mean, open up word and click insert->symbol->then select symbols from the drop down menu. I want to use the spade,heart,clubs and diamond characters. And also how would I clear the main screen? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Mon Jan 24, 2005 8:21 pm Post subject: (No subject) |
|
|
Well there are two ways i could see u doing this, if it is a standted ASCII char then u could probly just copy and past it in to your code or you could make a char varbible and give it the ASCII value of the char u whont.
Ex:
now letter should be an upsidedown ?[/code] |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Neo
|
Posted: Mon Jan 24, 2005 10:15 pm Post subject: (No subject) |
|
|
I found a thread that shows how to use the card suit characters but it just displays a "?" mark when I try. Somebody mentions changing the font to Ariel but how would I do that? Here's the thread:
http://forum.java.sun.com/thread.jspa?threadID=579374&messageID=2926503
This is the code for the suits if your too lazy to look at that thread:
code: |
char spade = (char)0x2660;
char club = (char)0x2663;
char heart = (char)0x2665;
char diamond = (char)0x2666;
|
Tell me if you can get it to work. |
|
|
|
|
|
|
|