ppl... HELP!!!!!
i don't know how to convert String into char.....
for example i can do
String input;
int number;
input = JOptionPane.showInputDialog( "Enter what ever" );
number = Integer.parseInt(input)
Peter van der Goes - 27 Dec 2004 20:19 GMT
> ppl... HELP!!!!!
> i don't know how to convert String into char.....
[quoted text clipped - 11 lines]
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
Well, first you'll need to find a group for Java. This is the Microsoft
public group for C++ in .NET.
I'll suggest the following possibilities:
alt.comp.lang.java
comp/lang.java.programmer
are two places that should work for you.
In the meantime, you might investigate the Java Character wrapper class.

Signature
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Alessandro Angeli [MVP::DigitalMedia] - 27 Dec 2004 21:27 GMT
> ppl... HELP!!!!!
> i don't know how to convert String into char.....
[quoted text clipped - 5 lines]
> input = JOptionPane.showInputDialog( "Enter what ever" );
> number = Integer.parseInt(input);
And why would you be asking a question about Java on a
Managed VisualC++ .NET group?? A question about Sun's Java,
by the way, and not even J#.
Anyway:
if(input.length() == 1) {
char c = input.charAt(0);
} else {
/// ERROR!
}

Signature
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net