Why “non-static variable cannot be referenced from a static context” produced for one program but not another? [duplicate]
solved Why “non-static variable cannot be referenced from a static context” produced for one program but not another? [duplicate]