I understood that I can't call a non static variable from a static context; and when I try to assign the non static variable B to the static A in between the Solution class, it doesn't work. So far good, but why does it work in the main via creating an object before? So, why doesn't this work??? While this does work, isn't this still a static context???
Please help, this is messing up my system! Question about the static variable
In der Diskussion