Returns the name of the field represented by this Field object.
Examples
package com.logicbig.example.field;
import java.lang.reflect.Field;
public class GetNameExample { private int anInt;
public static void main(String... args) throws NoSuchFieldException { Field f = GetNameExample.class.getDeclaredField("anInt"); String name = f.getName(); System.out.println(name); } }