private static void expand3DigitNumber(String numberString,WordRelation wordRelation,Item tokenItem){
  if (numberString.charAt(0) == '0') {
    expandNumberAt(numberString,1,wordRelation,tokenItem);
  }
 else {
    String hundredDigit=digit2num[numberString.charAt(0) - '0'];
    wordRelation.addWord(tokenItem,hundredDigit);
    wordRelation.addWord(tokenItem,"hundred");
    expandNumberAt(numberString,1,wordRelation,tokenItem);
  }
}

private static void expand3DigitNumber ( String numberString , WordRelation wordRelation , Item tokenItem ) { if ( numberString . charAt ( 0 ) == '0' ) { expandNumberAt ( numberString , 1 , wordRelation , tokenItem ) ; } else { String hundredDigit = digit2num [ numberString . charAt ( 0 ) - '0' ] ; wordRelation . addWord ( tokenItem , hundredDigit ) ; wordRelation . addWord ( tokenItem , "hundred" ) ; expandNumberAt ( numberString , 1 , wordRelation , tokenItem ) ; } }
expands a three - digit string into a list of english words .
