changed
Class<?> var[]
to
Class<?>[] var