Java语言中,String str=”123456789”,System.out.println(str.indexOf(“5”)),输出结果是( )。
A6.0
B5.0
C4.0
D3.0
出自:江苏开放大学JAVA程序设计作业2