WAP in java to find one string is a substring of another or not.
Sigiloso
//Below is the logic String value ="Love"; String value2="I Love My India"; String [] array =value2.split(" "); int length =array.length; for(int i=0;i<=length-1;i++){ if(value2.equalsIgnoreCase(array[i]){ Syso ("given string is substring of another string"); break; } }