Your class variables in the Taxonomia
class are static
, meaning only one of each for the entire class, no matter how many instances.
Make it one per instance by removing static
. Change
private static ArrayList<String> hijas;
private static String padre;
to
private ArrayList<String> hijas;
private String padre;