I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this:<
Class
You can get it using the class name. Just make sure you get the class using it's ClassLoader
Class klass = yourClass; boolean init = wantToDoStaticOperations; Class.forName("[L" + klass.getName() + ";", init, klass.getClassLoader());