In vb there is a built in Instr function, is there something similar in Java?
Printable View
In vb there is a built in Instr function, is there something similar in Java?
String str = "VB Forums";
int i = str.indexOf("F"); // 3
int i = str.indexOf("rum"); // 5