Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
        }
    }
}