There is an instance of class Class1 , how can I get it aValue field? The question is extremely stupid, I understand ... and yet. It turns out to get only static fields, and for instances how to be?
public class Class1{ private int aValue; public Class1(int a){ this.aValue = a; } } Class1 cls = new Class1(10);