• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using method in an array

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

is it possible to get the values for an array from the values returned by a method ? or is ther a simpler way of doing it ?

for example


String WordList

String LL = WordList.getLegalList

String [] words = {LL};


cheers

chris
 
Darin Niard
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure I understand your question but... I suppose it really depends on what this method is returning.
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Build your array in the method, then return the array.

 
mk aftab
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
you can make a function with some parameters, make your array and return it.
 
Jonathan Hall
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Chris,

Maybe your question can be answered a little more thoroughly at:

http://www.meljab.com

Just go to the search page and enter "array" in the text box and hit enter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic