zgodnie z dobrymi praktykami powinno się deklarować
List<String> list = new ArrayList<>();
a nie
ArrayList<String> list = new ArrayList<>();
szkoda że wtedy nie zalicza zadania
Last Task Trap.
This is very important - remember to put the index of first element that doesn't fit instead the value of it! That's the tip for everybody failed in the last requirement.
GO TO FULL VERSION