Java tutorial
//package com.java2s; public class Main { private static boolean shouldSkipClass(final Class<?> clazz) { final String clsName = clazz.getName(); return Object.class.equals(clazz) || clsName.startsWith("java.") || clsName.startsWith("javax.") || clsName.startsWith("android.") || clsName.startsWith("com.android."); } }