How to initialize an ArrayList in Android?

By | July 9, 2012
ArrayList<String> images_arr = 
		new ArrayList<String>(){		
			private static final long serialVersionUID = -1773393753338094625L;
			{
				add("string1");
				add("string2");	
				add("string3");	
				add("string4");	
			}
	};
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Reply

Your email address will not be published. Required fields are marked *