Java tutorial
/* * Output: public static void main(String args[]) { indexOf(t, 10) = 10 * */ public class MainClass { public static void main(String args[]) { String s = "public static void main(String args[]) {"; System.out.println(s); System.out.println("indexOf(t, 10) = " + s.indexOf('t', 10)); } }