Dynamic array: Difference between revisions

Content deleted Content added
m Robot-assisted disambiguation (you can help!): Java programming language
Line 12:
 
'''function''' insertEnd(''dynarray'' a, ''element'' e) {
'''if''' (a.size == a.capacity) {
/* resize a to twice its current capacity */
a.capacity := a.capacity × 2;
/* increasing capacity often requires reallocating
memory in a different ___location; then we will need