jeudi 2 juin 2016

How to get predefined java method Parameter names in Java 8 using reflection?

I have a class like this

class Test {
    public static HashMap<String, String> aa = new HashMap<String, String>();

    public void add() {
        aa.put("something", "something")
    }
}

I want to know how to get parameter which is pass during adding to HashMap . if there is any way to get it .





Aucun commentaire:

Enregistrer un commentaire