private String convertLessThanOneThousand(int number,int w){
  String soFar;
  if (number % 100 < 20) {
    soFar=numNames[number % 100][w];
    number/=100;
  }
 else {
    soFar=numNames[number % 10][w];
    number/=10;
    if (soFar.compareTo("") == 0) {
      soFar=tensNames[number % 10];
    }
 else {
      soFar=tensNames[number % 10] + " " + concat+ " "+ soFar;
    }
    number/=10;
  }
  if (number == 0)   return soFar;
  return hundredNames[number] + " " + soFar;
}

private String convertLessThanOneThousand ( int number , int w ) { String soFar ; if ( number % 100 < 20 ) { soFar = numNames [ number % 100 ] [ w ] ; number /= 100 ; } else { soFar = numNames [ number % 10 ] [ w ] ; number /= 10 ; if ( soFar . compareTo ( "" ) == 0 ) { soFar = tensNames [ number % 10 ] ; } else { soFar = tensNames [ number % 10 ] + " " + concat + " " + soFar ; } number /= 10 ; } if ( number == 0 ) return soFar ; return hundredNames [ number ] + " " + soFar ; }
convert less than one thousand
