lundi 17 avril 2017

How to get pirvate inner class instance with reflection in Java?

public class OuterClass {
    private static class InnerClass {
        public int id = 0;
    }
    private static InnerClass[] innerArr;
}

Need to get innerArr with reflection in Java.





Aucun commentaire:

Enregistrer un commentaire