Bupjae Lee wrote:Then, can I write like this?
Yes, but remember that what it will return is the
array's class - ie, for:
Array.newInstance(int.class, 0).getClass()
it will return
int[].class.
As long as that's what you want,
you should be fine.
Winston