Run »
public class Main { public static void main(String[] args) { String txt = "Please locate where 'locate' occurs!"; System.out.println(txt.indexOf("locate")); } }
7