-
returning arrays or vectors
Hi,
My code has a method that reurns an array as below:
public static String[ ] method_name(argument list)
{
statements....
return array;
}
When I try to print the array elements there is nothing that gets printed. But when I print the array elements in the method I am able to print them. What is the problem? why does the array has no elements in the main method?
I am accessing this method in main as below:
array_main = method_name(parameters);
Somebody please help...
-
Could you post your code for the method?
How have your declared the array which is being "constructed" by the returned array?
-
Thanks for your response, I got it working... what I did was just make some variables global.
Similar Threads
-
By Nai in forum VB Classic
Replies: 2
Last Post: 01-03-2006, 05:10 PM
-
Replies: 15
Last Post: 05-09-2001, 04:40 AM
-
Replies: 0
Last Post: 07-07-2000, 05:39 AM
-
By john in forum VB Classic
Replies: 0
Last Post: 07-03-2000, 11:03 AM
-
By john in forum VB Classic
Replies: 0
Last Post: 07-03-2000, 11:03 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks