ADT list

can i perform a conversion of a generic type data to int type in my ADT class?I'm trying to compare 2 values in a generic arraylist using Math.max function.thanks.
[185 byte] By [javaPOTATOa] at [2007-11-26 17:53:40]
# 1

> can i perform a conversion of a generic type data to int type in my ADT class?

> I'm trying to compare 2 values in a generic arraylist using Math.max function.

>

> thanks.

No, a java.util.List can only contain Objects, not primitives (like int's).

prometheuzza at 2007-7-9 5:06:40 > top of Java-index,Java Essentials,Java Programming...