java access attribute of object in arraylist code example Example: java access attribute of object in arraylist ((Object) Arraylist.get(index)).attribute;