[Solved]Converting objects into a custom class
in
Programming Questions
•
8 months ago
I have an ArrayList of a custom class of mine Atoms(I need it to be an ArrayList because the size will be dynamic and constantly fluxulating). But I have no idea how to convert the objects I get from ArrayList.get() back into my Atom class. I've tried typecasting by doing
Atom(ArrayList.get(0)) but the compiler tells me that Atom() is a uknown function. Any Ideas?
1