string indexof 28string str int fromindex 29 method in java

Solutions on MaxInterview for string indexof 28string str int fromindex 29 method in java by the best coders in the world

showing results for - "string indexof 28string str int fromindex 29 method in java"
Arianna
04 Jul 2016
1import java.util.*;
2public class StringIndexOfMethodExample
3{
4   public static void main(String[] args)
5   {
6      String strInput = new String("hello world core java");
7      String strSub = new String("core");
8      System.out.print("Index found: " );
9      System.out.println(strInput.indexOf(strSub, 3));
10   }
11}
12
13
14