I have an abstract class called object. I have an arraylist called objs. I want to pull out only a class that extends object called enemy. Do I use getClass().getSimpleName()? It does not work. What do I do? Make another arraylist all together?
I have an abstract class called object. I have an arraylist called objs. I want to pull out only a class that extends object called enemy. Do I use getClass().getSimpleName()? It does not work. What do I do? Make another arraylist all together?