File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Dynamic Array code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Dynamic Array code

Sumit Suresh Rao

Joined: Feb 16, 2009
Posts: 13
In an interview I was asked to write a code for dynamic array. Though I managed something I was not sure it was optimal. The following is somewhat similar to what I had attempted. Can someone help me iron out problems, if any, in the following code.

Winston Gutkowski

Joined: Mar 17, 2011
Posts: 8956

Sumit Suresh Rao wrote:In an interview I was asked to write a code for dynamic array...


1. Welcome to JavaRanch.
2. Please don't submit duplicate posts. I'm assuming that this was a mistake.

Locking this thread.


Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
I agree. Here's the link:
subject: Dynamic Array code
jQuery in Action, 3rd edition