How to convert CharSequence to String?

Belgi picture Belgi · Oct 10, 2011 · Viewed 142.2k times · Source

How can I convert a Java CharSequence to a String?

Answer

Mike Samuel picture Mike Samuel · Oct 10, 2011

By invoking its toString() method.

Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence.