【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 = "常量名称"; }
Python全栈(后端、数据分析、脚本、爬虫、EXE客户端) / 前端(WEB,移动,H5) / Linux / SpringBoot / 机器学习

浙公网安备 33010602011771号