View Single Post
Old 02-01-2009, 11:14 PM   PM User | #4
ch4sethe5un
New Coder

 
Join Date: Jul 2008
Posts: 71
Thanks: 7
Thanked 3 Times in 3 Posts
ch4sethe5un is an unknown quantity at this point
Quote:
Originally Posted by moist View Post
Also, how can I create a string to hold multiple values in a single parameter and call those values individually with a return statement?

for example: String name = new String ("Frank Herbert", "Mary Kolly", "Mike Polisi");
then call each name with a return statement.
You can make an array of Strings.
http://java.sun.com/docs/books/tutor...ts/arrays.html


and the return would be:

Code:
return name[3]
ch4sethe5un is offline   Reply With Quote