📜  如何在 android 中声明变量 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:25.145000             🧑  作者: Mango

代码示例3
public class MyApplication extends Application {

    private String someVariable;

    public String getSomeVariable() {
        return someVariable;
    }

    public void setSomeVariable(String someVariable) {
        this.someVariable = someVariable;
    }
}