Доброго времени суток, уважаемое сообщество!
Решил задачу, слова считает правильно, но валидатор не принимает по последнему пункту. В файле 5 слов "world". Пробовал добавлять .toLowerCase, т.е. приводить всё к одному регистру при сравнении, но тоже не проходит (т.к. в условии об этом явно не сказано, убрал). Прошу Вашей помощи, что не так, почему не проходит моё решение?
П/C: Текстовый файл приложен (см. вкладку справа от Solution.java).
Sonnet IX
Is it for fear to wet a widow's eye,
That thou consum'st thy self in single life?
Ah! if thou issueless shalt hap to die,
The world will wail thee like a makeless wife;
The world will be thy widow and still weep
That thou no form of thee hast left behind,
When every private widow well may keep
By children's eyes, her husband's shape in mind:
Look what an unthrift in the world doth spend
Shifts but his place, for still the world enjoys it;
But beauty's waste hath in the world an end,
And kept unused the user so destroys it.
No love toward others in that bosom sits
That on himself such murd'rous shame commits.
William Shakespeare