I have a class I defined, MyObject, and I want to create an ArrayList of this class. The add works fine:
[pre]
data.add( new myobject( ) ) ;
[/pre]
But when I try to get this way:
[pre]
MyObject mo = data.get( row ) ;
[/pre]
I get a compile time "incompatible types" error.
Does anyone know how to resolve this?
Rose/Miros
[pre]
data.add( new myobject( ) ) ;
[/pre]
But when I try to get this way:
[pre]
MyObject mo = data.get( row ) ;
[/pre]
I get a compile time "incompatible types" error.
Does anyone know how to resolve this?
Rose/Miros