P
Peter Parker
I am aware that the correct syntax for creating new collection is as
follows:
ArrayList<type> list = new ArrayList<type>();
Could someone show me the correct syntax (if any) if one gets the collection
from a known casted object as below. ie., where should I put <type> on the
right side?
ArrayList<type> list = ((SomeClass)someClassObject).getSomeCollection();
Thanks much.
follows:
ArrayList<type> list = new ArrayList<type>();
Could someone show me the correct syntax (if any) if one gets the collection
from a known casted object as below. ie., where should I put <type> on the
right side?
ArrayList<type> list = ((SomeClass)someClassObject).getSomeCollection();
Thanks much.