I
want to share how to FIND OF POSITION any string in the string OTHER. You can use this code
but if you copy this code and paste in your blog/website, please insert this
link of article.
System.out.println(str1.indexOf("Java")); //6
System.out.println(str1.indexOf("Java",10)); //17
System.out.println(str1.lastIndexOf("Hello")); //22
System.out.println(str1.lastIndexOf("Hello",10)); //0
0 komentar:
Posting Komentar