subtract remaining digits of str1 [ ]
for ( int i = n1 - n2 - 1 ; i >= 0 ; i -- ) { if ( str1 . charAt ( i ) == '0' && carry > 0 ) { str += "9" ; continue ; } int sub = ( ( ( int ) str1 . charAt ( i ) - ( int ) '0' ) - carry ) ;