How To Check If Object Is Arraylist Java