jeudi 18 mars 2021

List

I have List like below code snippet:

List<String> nameList = new ArrayList<>();
nameList.add("Robert");
nameList.add("Tom");
nameList.add("Curran");
//robert, tom, curran

Now I want to modify these list values using reflection API in Java. Output something like below we print list:

//xxx,xxx,xxx





Aucun commentaire:

Enregistrer un commentaire