> 其他 >
阅读下面的程序,
public class Student{
public static void main(String args[]){
String s="Welcom to Java";
System.out.printIn(s.substring(5,11)); ---①
System.out.printIn(s.indexOf('o')); ---②
}
}
语句①的输出结果__________
语句②的输出结果__________
人气:402 ℃ 时间:2020-02-04 06:08:46
解答
1输出 “m to J”
2输出 “4”
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版