File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes return array[][] Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "return array[][]" Watch "return array[][]" New topic
Author

return array[][]

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi!
I want write a method with return array[][]

public String[][] metodo(){
String[][] array = new String[5][10];
return array[][];
}
but this no compile. How I can do it?
thanks in advance.
Rashmi Hosalli
Ranch Hand

Joined: Jun 25, 2001
Posts: 50
Hi Jordi,
While returning 'array' just say return array without '[][]'.
Rashmi
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: return array[][]
 
Similar Threads
how to set 2d array in hidden field in java script
returning an array
Return type of web service..
Returning a String from Server (REST) and getting Errors..
Returning byte array to JavaScript from Java applet