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 somet
My solution
package example.tools;
public class ShowMe {
/*public static void print(String arg) {
System.out.println(arg);
}*/
// or better as ceving's example
public static<T> void print(T arg) {
System.out.println(arg);
}
}
In another class
import static example.tools.ShowMe.*;
public class Flower {
Flower() {
print("Rose");
}
}