字符串的CharSequence [英] string to charsequence

查看:268
本文介绍了字符串的CharSequence的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人请告诉我一个位code到字符串转换为CharSequence的?

Can somebody please show me a bit of code to convert a string to charsequence?

推荐答案

字符串实现接口的CharSequence ,所以字符串的的CharSequence。

String implements the Interface CharSequence, so String is a CharSequence.

和你可能永远不会实例化接口。无论是必需的CharSequence,字符串将适合。

And you may never instantiate interfaces. Wherever CharSequence is required, String will fit.

这篇关于字符串的CharSequence的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆