Timeline for Adding value to List<String> = new ArrayList<String>();
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 9, 2014 at 14:06 | vote | accept | lonelearner | ||
Mar 9, 2014 at 14:06 | |||||
Mar 9, 2014 at 14:06 | vote | accept | lonelearner | ||
Mar 9, 2014 at 14:06 | |||||
Mar 9, 2014 at 13:46 | comment | added | lonelearner | Returns a fixed-size list backed by the specified array. (Changes to the returned list "write through" to the array.) This method acts as bridge between array-based and collection-based APIs, in combination with Collection.toArray(). The returned list is serializable and implements RandomAccess. This method also provides a convenient way to create a fixed-size list initialized to contain several elements: List<String> stooges = Arrays.asList("Larry", "Moe", "Curly"); docs.oracle.com/javase/7/docs/api/java/util/Arrays.html | |
Mar 9, 2014 at 13:44 | comment | added | lonelearner | Thank you, both of your answer work, i tried very hard to look for a solution on android developer, but i do not know which page to look for. | |
Mar 9, 2014 at 13:33 | history | answered | wypieprz | CC BY-SA 3.0 |