On 5/21/07, Felix Schumacher <[EMAIL PROTECTED]> wrote:
Have you tried to put an Object into ArrayList?
Like
alist.add(Integer.valueOf(0));
System.out.println((Integer)alist.get(0));

I don't think it is possible to store an int into an ArrayList.

Autoboxing is the magic word here. The compiler generates
alist.add(new Integer(0)); if it sees alias.add(0);
regards
Leon


Bye
 Felix



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to