You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
374 B
20 lines
374 B
package pkg;
|
|
|
|
public class TestClassFields {
|
|
private static class Inner {
|
|
private static int staticMutable;
|
|
}
|
|
|
|
private static int[] sizes;
|
|
private static String[] names;
|
|
|
|
private static final int SIZE;
|
|
|
|
static {
|
|
names = new String[]{"name1", "name2"};
|
|
sizes = new int[names.length];
|
|
|
|
Inner.staticMutable = 3;
|
|
SIZE = Inner.staticMutable;
|
|
}
|
|
} |