hi all,

it's so strange!!

i have a list decleared:
public static List<String> list1=new ArrayList<String>();
and use

list1.add(str);
it is ok!

but use
list1.add(index,str);
program will be error

but in the
http://developer.android.com/reference/java/util/List.html
really exist

"add(int location, E object) Inserts the specified object into this
List at the specified location."


how can i solve??
thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to