0
Advanced JAVA Generics code question
Why my code got no output , shouldn't it should be output as "i am a camera". https://code.sololearn.com/cy06NMr7BJRO
3 Antworten
+ 4
ArrayList<camera> list1 = new ArrayList<camera>();
list.add(new camera());
list.add(new camera());
You want to fill list1 with values but you filled list.
+ 1
Denise Roßberg Thanks so much
0
Cause you not attentive, and list that you want to print don't contain any values.