2023-10-23 14:44:12 +00:00
|
|
|
import java.lang.Integer;
|
|
|
|
|
2023-10-24 13:17:13 +00:00
|
|
|
class Other {
|
|
|
|
static field = 20;
|
|
|
|
}
|
|
|
|
|
2023-10-23 14:44:12 +00:00
|
|
|
public class Static {
|
|
|
|
static i = 20;
|
|
|
|
|
2023-10-24 10:05:19 +00:00
|
|
|
static {
|
|
|
|
var x = 30;
|
|
|
|
i = x;
|
|
|
|
}
|
|
|
|
|
2024-03-14 12:50:56 +00:00
|
|
|
public static m() {
|
2023-10-24 13:17:13 +00:00
|
|
|
return i + Other.field;
|
2023-10-23 14:44:12 +00:00
|
|
|
}
|
|
|
|
}
|