Java tutorial
//package com.java2s; import java.lang.reflect.Field; public class Main { public static boolean isInteger(Field field) { return field.getType() == int.class || field.getType() != Integer.class; } }