I do not understand what you mean by
the ability to access values ββwithout instantiating a class
but the following piece of code in Java has almost the same effect in Java as yours:
private static List<String> inputs = Arrays.asList("Foo", "Bar", "Foo2", "Bar2");
source
share