while all the methods of List Interface are accessible by the List(converted from Array), why is it not possible to add any new elements into the new Converted List.
Regards,<br />Pradeep Balasubramanian<br /> <br />You have to grow from the inside out. None can teach you, none can make you spiritual. There is no other teacher but your own soul. <br /> <br />- Swami Vivekananda
If you goto the API, ou would find this: Returns a fixed-size list backed by the specified array. (Changes to the returned list "write through" to the array.) So this means that the list is fixed-size and hence you cannot add to it. However the list is synchronized with the array, this means that if you change any element in the array, same would be reflected in the list. You can do this by:
Preparing for SCJP 6.0
Joined: Jun 16, 2008
Now I am clear
Also, Once the length of array is specified , its size cannot be changed later.
Thank you, for pointing the error made by me.
[ September 16, 2008: Message edited by: Pradeep Balasubramanian ]
Joined: May 19, 2008
That is so obvious. When you say:
You define the size of the array at compile time and cannot change it at runtime. Thats is what lists are for.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com