This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 7484
    
  18

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?
Articles by Winston can be found here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Array code
 
Similar Threads
Adding a List using hasnext(),next() (user defined)
Deleting element from an array - help please
non-static variable this cannot be referenced from a static context
OutOfMemory error
Multiple selections