Driver code
public static void main ( String [ ] args ) { String str1 = "00100" , str2 = "111" ; if ( canConvert ( str1 , str2 ) ) System . out . println ( " Yes " ) ; else System . out . println ( " No " ) ; } }