Posted by: yellow October 30, 2008
Login in to Rate this Post:
1
?
Liked by
Over the last few threads, I am kind of amazed with people bashing someone asking for help. And People who are asking for help are asking for the whole code... #include ... to return blah.
I think you are doing java, and it is a good question, how to pass array to a function. As java does not use pointers like C++.
Zeepa, you seem to have already done the hard part, so whats going on ? make a function, like the question says passs an argument ( array). .
String myArray == new array[20];
// put your values into myArray in each elements.
public string myArrayFunction( myArray) {
type that code... you found or did.
return myArray; // which at this point is already sorted.
}
I think you are doing java, and it is a good question, how to pass array to a function. As java does not use pointers like C++.
Zeepa, you seem to have already done the hard part, so whats going on ? make a function, like the question says passs an argument ( array). .
String myArray == new array[20];
// put your values into myArray in each elements.
public string myArrayFunction( myArray) {
type that code... you found or did.
return myArray; // which at this point is already sorted.
}
Last edited: 30-Oct-08 09:52 AM