2019年6月22日

《Java从入门到精通(入土)》字符串 中

摘要: 字符串操作 字符串操作 1.获取子字符串 格式:str.substring(int index); str.substring(beginIndex,endIndex); 2.去除空格 trim()方法去除前导空格和尾部空格。 格式:str.trim(); 3.字符串替换 格式:str.replac 阅读全文

posted @ 2019-06-22 23:40 小秦呀 阅读(106) 评论(0) 推荐(0)

导航