driver program
static public void main ( String [ ] args ) { String s = " abctd " ; String q = " cat " ; if ( isPresent ( s , q ) ) System . out . println ( " Yes " ) ; else System . out . println ( " No " ) ; } }