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 void setProperty(Object paramObject1, String paramString, Object paramObject2) {
        try {
            Field localField = paramObject1.getClass().getDeclaredField(paramString);
            localField.setAccessible(true);
            localField.set(paramObject1, paramObject2);
        } catch (Exception var4) {
            ;
        }

    }
}