Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.lang.reflect.Field;

import android.util.Log;

public class Main {
    private static final String TAG = "BeanHelper";

    private static Field getPropertyField(Class<?> beanClazz, String propertyName) {
        Field property = null;

        try {
            property = beanClazz.getField(propertyName);
        } catch (NoSuchFieldException ex) {
            Log.d(TAG, "No such public property '" + propertyName);
        }

        return property;
    }
}