阅读下面的程序,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')); ---②}}语句①的输出结果__________语句②的输出结果__________

问题描述:

阅读下面的程序,
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')); ---②
}
}
语句①的输出结果__________
语句②的输出结果__________

1输出 “m to J”
2输出 “4”