How Can I Use An Array Created In One Method In Any Other Method Or Class?


Answer:
Pass it to the next method, ensure the method being passed to has the correct parameter.

Ie

void CreateArray()
{
  int[] intArray = {1,3,2,4,3,5}; //Create the array
  DoStuffWithArray(intArray); // pass intArray to DoStuffWithArray
}

// other method within class
null and void DoStuffWithArray(int[] array)
{
    print (array[0]); //print first element of the array passed to this method
}




Resolved Questions:
Does Chris Brown Have A Myspace?
If you mean Chris Brown the R & B singer, then yes, he does have a Myspace profile. You can find it here: www.myspace.com. Hope this help! Yea

The green power lighting comes on and easier said than done drive pale lights for a couple...
Sounds to me like your harddrive is having some problems. Is it a new/old hard drive and enjoy you made sure your internal fan is still working? Normally a harddrive will break if it doesn't get enough...

Where Can I Find A Cost-free Site Where I Can Submit A 48 MB PDF Text...
I have a 48 MB PDF file called Hollywood mythology. It is give or take a few the mythological aspects of Hollywood movies, about conspiracies, aliens and more, amateur science quality. I would like to contribute this to...