Олимпиадный тренинг

Задача . 37338


Задача

Темы:
Consider writing a program that reads the lines of any text file into a sequential list of lines. Which of the following is a good reason to implement the list with an ArrayList of String objects rather than an array of String objects?
(A) The get and set methods of ArrayList are more convenient than the [] notation for arrays.
(B) The size method of ArrayList provides instant access to the length of the list.
(C) An ArrayList can contain objects of any type, which leads to greater generality.
(D) If any particular text file is unexpectedly long, the ArrayList will automatically be resized. The array, by contrast, may go out of bounds.
(E) The String methods are easier to use with an ArrayList than with an array

time 1000 ms
memory 32 Mb
Правила оформления программ и список ошибок при автоматической проверке задач

Статистика успешных решений по компиляторам
Комментарий учителя