This morning I needed to find and invoke a method reflectively that had an array parameter. It took me a few minutes to figure out how to get the class representing say a char[].
As a reminder, some other ways to get Class instances are:
An array is an object and has a class, but I wasn't aware of any way to do the equivalent of the above for an array of some type. One way is to use Class.forName() with the array class signature:
But then my Java guru Tim Eck pointed out that you can just do:
Hope that helps someone out there!