Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with getting an array from a method..  RSS feed

 
Ashley Carey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok so, i have this code where i have 1 button linked to a method to calculate something(the method is in another class) and it returns an array with what it was supposed to calculate. then i have another method which needs to display all of it.. the thing i need help with is getting the thing it returned from 1 method into another.. i cant figure it out. .is there anything you can type to just make it read variables from other methods without having to make it return something?
 
Ashley Carey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


this is the code.. the bottom one is the button that i need to use to display it.. i need to get the array that gets returned.. and put it into that second method....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!