On Oct 21, 4:18*am, amor...@xenon.Stanford.EDU (Alan Morgan) wrote:
> In article <67e6dbb8-cf75-465b-873d-25d14695c...@f40g2000pri.googlegroups..com>,
>
> laredotornado *<laredotorn...@zipmail.com> wrote:
> >Hi,
>
> >I'm using Java 1.5. *Let's say I have an Object[] array. *If I know a
> >valid index in that array, what is the easiest way to remove an
> >element at that index and get a corresponding Object[] array without
> >that element?
>
> Not using an array would be my first suggestion. *Have you considered
> using an ArrayList and converting to an array if and when you need to?
>
> Alan
> --
> Defendit numerus
I agree with this. Have an arrayList and delete or add element
whenever you need and use ArrayList.toArray() to get the desired array
at any time.
================================================== ==============
Community for the Java programmers to share views,ideas and post
queries <a href="www.techcubetalk.com">
www.techcubetalk.com </a>