how to find substring in java

Java
int indexOf(char c)
// Accepts character as argument, Returns index of 
// the first occurrence of specified character 

Source

Also in Java: