Using Java Reflection, is it possible to get the name of a local variable? For example, if I have this:
Foo b = new Foo(); Foo a = new Foo(); Foo r = new Fo
see this example :
PersonneTest pt=new PersonneTest(); System.out.println(pt.getClass().getDeclaredFields().length); Field[]x=pt.getClass().getDeclaredFields(); System.out.println(x[1].getName());