Jacob Carlborg wrote: ... I tried running your program with the data sets from http://page.mi.fu-berlin.de/prechelt/phonecode/ but I get the following error: tango.core.Exception.ArrayBoundsException at phonecode(199): Array index out of bounds