File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Converting an Object to a Character?
Joined: Sep 19, 2003
Apr 01, 2004 19:44:00
is there a way to convert something of type Object to a Character?
[ April 01, 2004: Message edited by: Brandi Love ]
Joined: Mar 13, 2004
Apr 01, 2004 20:18:00
All Objects have a toString() method which will give a
of characters represnting the object in printable form.
An Object of type Character can be turned into a char primitive with its charValue() method:
char c = myCharacter.charValue();
SCJP 1.4, SCWCD in process
I agree. Here's the link:
subject: Converting an Object to a Character?
Question about charAt() from JQ+
char to string conversion
Wrapping chars in array
WA #1.....word association
split method in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013