Hi ,
Is there a way to access local variables declared in a function in another function
during run time.
Say for example I have the following program
public class abc{
public static void f()
{
int x=10;
.....
}
public static int g()
{
int y=4;
return x+y;
}
public static void main(String args[])
{
System.out.println("The result of g() is " + g());
}
}
Is there any possibilities of g() accessing variable x declared in f().
Im simplifying the issue. Actually I want to do this at runtime.
Help would be greatly useful
-Sri
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]