How to convert CharSequence to String?

后端 未结 3 1172
自闭症患者
自闭症患者 2020-12-02 18:04

How can I convert a Java CharSequence to a String?

3条回答
  •  温柔的废话
    2020-12-02 18:31

    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.

提交回复
热议问题