Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static Class<?>[] toClasses(Object... args) {
        List<Class<?>> list = new ArrayList<Class<?>>(args.length);
        for (Object obj : args)
            list.add(obj.getClass());
        return list.toArray(new Class[list.size()]);
    }
}