String常用功能

1.String属性

2.String方法

构造方法:

1.String(byte bytes[],int offset,int length,String charsetName)
参数:1byte数组;2起始下标;3数组长度;4字符编码(如utf-8)
逻辑:首先判断4不为空,123的长度为正。。。。。。

方法:

猜你喜欢

转载自blog.csdn.net/Bristor/article/details/82052517