subject

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 the ArrayList are mire 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.
(C) The String methods are easier to us with an ArrayList than with an array.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Pseudocode pld #6, pg. 117 start// declarations// number numbertoguess// number myguess; numbertoguess = 92// while myguess ! = numbertoguess// output " guess an integer number between 1 and 100"// input myguess// if (myguess == numbertoguess)// output "you guessed the correct number"// else// output "the number you guessed was incorrect. try again! "// end if// end while// output " for playing the guessing game. have a great day! "// stop
Answers: 3
question
Computers and Technology, 25.06.2019 08:20
The internet backbone is a foundation network linked with
Answers: 1
question
Computers and Technology, 25.06.2019 10:00
Most common level of education for a programmer or software developer
Answers: 1
You know the right answer?
Consider writing a program that reads the lines of any text file into a sequential list of lines. Wh...
Questions
question
Social Studies, 09.12.2019 12:31
question
Biology, 09.12.2019 12:31
question
English, 09.12.2019 12:31
Questions on the website: 13722359