first off...Hi! first time posting.
ok, ive been using java for a little over half a year now and the APIs, google, and trial and error have solved all my problems up until now.
ive learned that u can set an ArrayList's type by using the <symbols> and the object name. my question is two part.
ive got a parameter that can take a superclass(or basically a designed class to help with interfacing) and i want the method to get the actual sub class.
secondly i want to to create an arraylist fixed with the obtained subclass if possible.
iv tried googling it and no real help there. and the api refers u back to arraylist when u click on element. ive tried using the object method getClass(), but that wont go into the <object> area and work with the compiler. Anyone able to help me with any of those things? it would be much appreciated.