Marketplace
4elements Import table ArrayList except null elements? Another newbie question java. How do I import a table into an ArrayList with the exception of null values? I find painting to be uncompromising when it comes to move and remove items and by reducing or increasing the size of the table. I need to use a table during the first part of the program for indexing and export the contents of an ArrayList with the exception of null elements. The last part of my program needs to iterate using the new cut arraysize actual number of elements which trimtosize is very useful. I do not think this is possible, although I could see how you might think that this is possible, since an array is an object. The collection classes are useful because they have this feature built in. You can use Arrays.toList () to convert a table into a list. I think List.add () returns FALSE, the data to null. It seems that you want to add a zero to an index. Have you tried using List.add (T value, int index)? Posted on February 17, 2010.
CommentsThere are no comments.Leave a Comment | Newest Articles Network |