This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Java in General
Cast a String to a char
Joined: Oct 14, 2001
Oct 24, 2001 18:18:00
Anyone know how to cast a
to a char?
Joined: Mar 06, 2001
Oct 24, 2001 19:08:00
well, you don't. A String is an Object and a char is a primitive. If the String only has one one char in it, use char aChar = aString.charAt(0);
subject: Cast a String to a char
How to cast a String to java.sql.types.CHAR
about char declair
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014