How do I convert a char password = new char; into a Sting String new_password.
return (String) password or new_password = (String)password
Joined: Jul 10, 2001
Hello This is taken directly from the String class String(char value) Allocates a new String so that it represents the sequence of characters currently contained in the character array argument. String(char value, int offset, int count) Allocates a new String that contains characters from a subarray of the character array argument. hope it helps !
------------------ Sun Certified Programmer for Java 2 Platform
Joined: Nov 23, 2001
Hi, You can use the method toString(char);
------------------ Ahmer Arman
Joined: Aug 06, 2001
Download the Java API documentation - you'll find everything you need to know in there!