Java tutorial
//package com.java2s; import java.lang.reflect.Field; public class Main { public static Object getProperty(Object classObject, String paramString) { try { Field localField = classObject.getClass().getDeclaredField(paramString); localField.setAccessible(true); return localField.get(classObject); } catch (Exception var3) { return null; } } }