My code has a method that reurns an array as below:

public static String[ ] method_name(argument list)

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...