mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
15 lines
296 B
Java
15 lines
296 B
Java
class A {
|
|
public static final String test2;
|
|
|
|
public void demo(String val){
|
|
if ("test1".equals(val)){
|
|
//do somethign
|
|
} else {
|
|
test2 = "test2";
|
|
if (test2.equals(val)) {
|
|
//... something else
|
|
}
|
|
}
|
|
}
|
|
}
|