サイズが 45 の arraylists の配列を作成しました。何らかの理由で ArrayOutOfBoundException が発生しています。
エラーが発生する場所は次のとおりです。
String temp;
Scanner sc = new Scanner(str1);
while(sc.hasNext())
{
temp = sc.next();
int len = temp.length();
if(len > 0)
wordsByLen[len - 1].add(temp); //throwing the error here with exception of 59
}
よろしくお願いします。