<awangdev>415. Add Strings_2.java
private int[] convertToInt(String num) {

        if (num == null || num.length() == 0) {
            return new int[1];
        }
        int n = num.length();
        int[] nums = new int[n + 1];
        for (int i = 0; i < n; i++) {
            nums[i] = num.charAt(n - i - 1) - '0';
        }
        return nums;
    }
private int [ ] sample_funcname ( String var_1 ) {
  if ( var_1 == null || var_1 . length ( ) == 0 ) {
    return new int [ 1 ] ;
  }
  int var_6 = var_1 . length ( ) ;
  int [ ] var_7 = new int [ var_6 + 1 ] ;
  for ( int var_8 = 0 ;
  var_8 < var_6 ;
  var_8 ++ ) {
    var_7 [ var_8 ] = var_1 . charAt ( var_6 - var_8 - 1 ) - '0' ;
  }
  return var_7 ;
}
