This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need examples of source code that uses resizing method. I was told to look in the Java library or java.util.vector for example source code but I haven't a clue for where to look for that. Any help would be appreciated!
Resizing as in GUI painting stuff? Or resizing as in Collections changing size? Also zZRyanzZz, I give you full credit for an interesting first name , however it does NOT look very real :roll: , so could you please drop the creative z's? You can change your display name: here.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Sep 18, 2003
I need to resize an array when the array has reach it's max size. Thanks.. for the reply Cindy!
I need to resize an array when the array has reach it's max size. The standard solution is to use one of the implementations of the List interface (such as LinkedList and ArrayList). The resizing is automatic, and you get a number of additional bonuses to manipulate your collections and to make your code more reusable.