当前位置: 动力学知识库 > 问答 > 编程问答 >

methods - Android-getting value from other function

问题描述:

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?

分享给朋友:
您可能感兴趣的文章:
随机阅读: