165k views
5 votes
Complete (and print with your homework) the following tracing table. Recalling how much we care that you use correct punctuation when you write objects' values, we urge you to practice doing so. For example, after the 3rd statement the value of the array is__________.

User XMort
by
3.2k points

1 Answer

3 votes

Answer: (<?, ?, "green", ?, ?, "red", ? >, {2, 5})

Step-by-step explanation:

Note the use of parentheses, commas, square brackets, double quotes, and parentheses. It is a good idea to consult the Array Kernel mathematical model and make a connection between it and the correct answer shown above. Furthermore, it is also a good idea to consult the contract for each method or you can say that constructor called as well.

User Paul Mikesell
by
3.2k points