Associate
- Joined
- 25 Aug 2008
- Posts
- 947
Try changing
to
its pulling out an object from your arraylist, you need to tell it that its of class actor... then it will work.
Code:
System.out.println(al[0].get(0).fname());
to
Code:
System.out.println(((Actor)al[0].get(0)).fname());
its pulling out an object from your arraylist, you need to tell it that its of class actor... then it will work.
Last edited:

