【JAVA】fina关键词
作者:互联网
public class Cont { public static void main(String[] args) { // 只能使用 不能更改 System.out.printf("常量" + Constant.AGE); System.out.printf("NAME" + Constant.NAME); } } class Constant{ public static final int AGE = 22; public static final String NAME = "常量名称"; }
标签:Constant,NAME,AGE,关键词,final,static,fina,JAVA,public 来源: https://www.cnblogs.com/wanghong1994/p/16349267.html