It seems strange that I can’t import static java.lang.System.out.println, when I can import static java.lang.Math.abs. Is there some reason behind this or am I doing something really stupid that I don’t see at the moment? (Using Eclipse.)
It seems strange that I can’t import static java.lang.System.out.println, when I can import static
Share
Mathis a class, on whichabsis a static method.System.outis a static field rather than a class. So itsprintlnmethod isn’t actually a static method, but an instance method on a static field.