The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Hi, Kishori

Posted by Branda on October 02, 2000 at 6:17 AM

Hi, Kishori
Now I think I am clear how to do it. But I encountered a problem:
In your code, you have: aa.createArray(10)
I understand that if I have a method:
createArray(int lengthOfArray), then I would be able to create an array of length=10; but with aa.createArray(), what return type should I put? I tried: public Arrays createArray(int length)
but it gave me error message. Is it right to use "Arrays" as a return type?
Thank you for your patience!!



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us