單項(xiàng)選擇題

Java語(yǔ)言中,Stringstr=”123456789”,System.out.println(str.indexOf(“5”)),輸出結(jié)果為()。

A.6
B.5
C.4
D.-1

微信掃碼免費(fèi)搜題