On Dec 13, 2006, at 7:59 AM, Aeon B. C. Lee wrote:
Can anyone tell me what's wrong with the last statement of my code?
If you can do getClass() on whatever Object is on your stack it seems
like...
byte[] b = (byte[])java.lang.reflect.Array.newInstance
(byte.class, 10); // This is OK
System.out.println(Array.create(Byte.class, 10)); // So is this
System.out.println(Array.create(b.getClass(), 10)); // WTF
is wrong with this?
should work...
java NewMain
[Ljava.lang.Byte;@2e7263
[[B@57f0dc
The [[B is a little different - an array of array of something? Might
not be right after all, you'd need to test.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden