Thursday, November 13, 2008

Java Char to String

2 ways...

if c is the character...

1. Use String.valueOf(c), This gives a String representation of the argument i.e. c

2. Add to StringBuffer and finally get a String by calling toString() on the StringBuffer

No comments: