Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
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:
Beginning Java
return array?
G Spotsworth
Greenhorn
Posts: 2
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
i am writing my first class and i would like on e of my methods to returm an array, is this possible?
gracias
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Welcome to JavaRanch!
Yes, it sure is; nothing weird about it.
int[] foo() { int[] a = { 1, 2, 3 }; return a; }
[Jess in Action]
[AskingGoodQuestions]
G Spotsworth
Greenhorn
Posts: 2
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
muchas gracias
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Array
Convert Java Array to JavaScript Array.
can you have an array of vectors
Question to authors: AJAX caching
Array dimension missing
More...