How to express Array<T>.class
collections, java
Solution
You can use `Object[].class`.
(`int[].class`, `String[].class`, `double[][][].class` etc also works for that matter.)
Problem
I have a method that needs a Object.class parameter like ``` method(Object.class) ``` How can I set the class to an Array of this class? Something like ``` method(ArrayList<Object>.class) ``` I tried ``` method(new ArrayList<Object>() {}) ``` as well. It doesnt work.