Thread: wrapper classes
View Single Post
  #6 (permalink)  
Old 12-11-2007, 11:45 PM
staykovmarin staykovmarin is offline
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Code:
// ArrayList<int> intgers = new ArrayList<int>(); // <- breaks. You cant // have prmitives in generics ArrayList<Integer> intgers = new ArrayList<Integer>(); // <-works, and it // has the same effect as having integers into it.
Reply With Quote