Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { String txt = "Please locate where 'locate' occurs!"; System.out.println(txt.indexOf("locate")); } }
7