Java tutorial
//package com.java2s; public class Main { private static Class<?>[] classess(Object[] args) { Class<?>[] result = new Class<?>[args.length]; for (int i = 0; i < args.length; i++) { Object z = args[i]; if (z != null) { result[i] = z.getClass(); } } return result; } }