0

Android

1. ArrayList<String> Listitem; 2. Listitem =new ArrayList<>(); what does the second line says

10th Sep 2018, 6:15 AM
Pavan kumar R
Pavan kumar R - avatar
1 Odpowiedź
+ 5
You dynamically create a new instance of the class, and then assign it to the object. Without doing so, Listitem would have been null.
10th Sep 2018, 7:04 AM
Hatsy Rei
Hatsy Rei - avatar