mercredi 18 novembre 2015

how to get a Method member or property java

here's my example code:

how to get the instance of Map methodProperty and List list using the reflection??

public void method1(){
    Map methodProperty = new HashMap();
    methodProperty.put("name","unknown");
    List<Map> list = new ArrayList<>();

    list.add( methodProperty );
}





Aucun commentaire:

Enregistrer un commentaire