![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: May 2006
Posts: 39
Rep Power: 0
![]() |
passing variables from one method to another?
public class something
{
public void methodOne()
{
int i = 0;
int x = 4;
String word = "hello";
int[] abc = new int[26];
while( i < 26)
{
abc[i] = x;
x++;
i++;
}
methodTwo(i, x, word, abc);
}
public void methodTwo(i, x, word, abc)
{
int a = i;
int b = x;
String c = word;
int d = abc;
}
} |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|