I have a class A which contains an arraylist of another class, B, which is
rarely used separately. So I nested B within A.
I also have an enum of the values of one of the items within B. Call it C.
Right now C is also nested directly within A.
So A.C is the type and A.B.C is a variable of that type.
I fear this will provoke confusion. What is a better way to handle the
naming? I have something parallel going on in another class I need to
define.
Should C be right out on top, not nested in anything, and named something
like ABC? Then ABC would be the type and A.B.C would be the variable.