亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

代碼
提交代碼
public class StringMethod2 { public static void main(String[] args) { String str = "I love Java, I love imooc!"; int i = str.indexOf('a'); System.out.println("字符a在字符串str第一次出現的位置為:" + i); } }
運行結果