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

Задача . 37440


Задача

Темы:
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 List of String objects rather than an array of String objects?
(A) The [] notation of List are more convenient than the [] notation for arrays.
(B) The size method of List provides instant access to the length of the list.
(C) An List can contain objects of any type, which leads to greater generality.
(D) If any particular text file is unexpectedly long, the List will automatically be resized. The array, by contrast, may go out of bounds.
(E) The String methods are easier to use with an List than with an array

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

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