Driver code
public static void main ( String [ ] args ) { String str1 = " hello " ; String str2 = " world " ; if ( twoStrings ( str1 , str2 ) ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; } }