Data type for ArrayList get() function (class, OOP)

part is of data type / class part.

part is an object instantiated from the class Particle.

The method getClass_B

This method:

this would be:

Class_B getClass_B(int i) {
    Class_B refClass_B = class_b_elements.get(i);
    return refClass_B;
}

Oh, and welcome to the forum!

Great to have you here!

Regards,

Chrisir