Java字符串的截取

xiaoxiao2021-02-27  163

例如:String str = "hello word!"; System.out.println(str.substring(1,4)); System.out.println(str.substring(3,5));    System.out.println(str.substring(0,4)); 将得到结果为: ell lo hell
转载请注明原文地址: https://www.6miu.com/read-13176.html

最新回复(0)