问题描述:

I am working on android and at this time i am using two functions. I am getting values in one function and want to use those values in other function. But it's not working. My code is like this:

 double var1, var2;

func1 {

var1 = get.value;

var2=get.value;

}

func2{

another variable=(var1,var2).

}

In second functoin all i'm getting is the default value 0.

Any suggestion?

相关阅读:
Top