Driver code
public static void main ( String [ ] args ) { Vector < String > s = new Vector < > ( ) ; s . add ( " bana " ) ; s . add ( " apple " ) ; s . add ( " banacb " ) ; s . add ( " bonanza " ) ; s . add ( " banamf " ) ; System . out . println ( check ( s , " banana " ) == true ? 1 : 0 ) ; } }