静态导入法

提示到静态导入,可以省去很多事情,但是不好看。


package com.baidu;

import static java.lang.System.out;
import static java.lang.Integer.*;
public class A {
public static void main(String[] args) {
out.println("你好啊。");
out.println(Integer.MAX_VALUE);
//整数的最大值,2的31次方减一
}
}

猜你喜欢

转载自www.cnblogs.com/henryzkf2020/p/12153779.html
今日推荐