aspose file tools*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Dynamic Array code

Sumit Suresh Rao
Greenhorn

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
Bartender

Joined: Mar 17, 2011
Posts: 7081
    
  16

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

Sumit,

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

Locking this thread.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Array code
 
Similar Threads
Multiple selections
OutOfMemory error
Deleting element from an array - help please
non-static variable this cannot be referenced from a static context
Adding a List using hasnext(),next() (user defined)