public class Temp{
public static void main(String[] args) {
String str = "hello,world";
//The method charAt(int) in the type String is not applicable for the arguments (String)
// System.out.println(str.substring(str.charAt("w"),str.length()));
System.out.println(str.substring(str.indexOf("w"),str.length()));
}
}
005 str.charAt(int) str.indexOf(String)
最新推荐文章于 2022-06-02 08:04:35 发布