my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes how to output all char value? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "how to output all char value? " Watch "how to output all char value? " New topic
Author

how to output all char value?

dx wu
Ranch Hand

Joined: Apr 28, 2002
Posts: 60
I design following code to output all char value,but it output a lot of symbol ?



good good study , day day up!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
That's because most of the char values are symbols.
You will only see them properly if you output them to a suitable device using a suitable device driver. Some are control characters like escape, carriage-control, linefeed, et c. and some of them do not have a visible effect - for example BEL.
[ October 01, 2004: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to output all char value?
 
Similar Threads
a quiz on character conversion to String
while loop with an if loop (help)
OutputStreamWriter store value
Java String Question
Convert a Numeric Value into associated Character