Saturday, 21 July 2012

How to initialize an ArrayList in Android?


ArrayList<String> images_arr =
new ArrayList<String>(){
private static final long serialVersionUID = -1773393753338094625L;
{
add("string1");
add("string2");
add("string3");
add("string4");
}
};

No comments:

Post a Comment