Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
return array[][]
Anonymous
Ranch Hand
Posts: 18944
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 51
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Jordi,
While returning 'array' just say return array without '[][]'.
Rashmi
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Returning byte array to JavaScript from Java applet
how to set 2d array in hidden field in java script
Return type of web service..
returning an array
Returning a String from Server (REST) and getting Errors..
More...