摘要: 字符串与字符 //字符要用单引号,字符串用双引号 char a={'h','e','l','l','o'} String a= new String(a) //上面两行等价于 String a = new String("hello") 字符串的相关方法 1. 获取字符串长度 str.length( 阅读全文
posted @ 2020-07-31 00:42 helex 阅读(141) 评论(0) 推荐(0) 编辑