+ 1
This has been bothering me
String greeting="SoloLearn"; System.outprint(greeting.indexOf("Solo")); System.out.print(greeting.indexOf("Learn"));
3 Respuestas
+ 12
Hi, simply take a look at the language reference whenever you need to know what a class/method/whatever does:
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#indexOf(java.lang.String,%20int)
+ 11
Why has it been bothering you?
I think you have missed a dot(.) after System.out in 2nd line
+ 2
Zlytherin yeah i missed the dot, but i actually want to know how this code works