At present, I am storing Wire.java's and Pipe.java's.However, when it comes to accessing the different types inside of the list, I am faced with a dilemma.First I tried it like this: for (Wire w : component_list)However, it can not iterate over only a single type of component inside of the list; it is looking for Wires when the iterator only knows to return Components.Seeing this, I tried:for (Componen