Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Question 5.11 Homework - Array

+10 votes
For question 5.11 of the homework, would the array approach be less effective because ALL of the data could be passed around, accessed, changed, and manipulated through use of the ArrayList Object methods? As opposed to the specificity for each piece of data that could be achieved through specific instance methods. I get the impression that the array method would simply be cumbersome and less private. Am I missing some benefits to using only the Array to store all the data?
asked Oct 14, 2016 in CSC 285 (F16) by Keenan Odenkirk (100 points)

1 Answer

0 votes
Think about some of the code you'd write, and consider the readability of it both ways...
answered Oct 15, 2016 by Forrest Stonedahl (3,308 points)