📜  静态导入java代码示例

📅  最后修改于: 2022-03-11 14:52:41.561000             🧑  作者: Mango

代码示例2
static import
We can also import static members (methods and fields) of a class inside
another class. If we write an asterisk * in the import statement,we don't need 
to write the imported class name before invoking static methods or reading static fields.
example
import static java.lang.System.out;
import static java.util.Arrays.*; 
// instead of the statement "import java.util.Arrays;"