Advertisement
|
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.
Message:
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!! Branda
Replies:
- Hello Kishori Sharan October 02, 2000 at 10:58 AM
(2)
|