000024:赋值给变量和常量并通过输出测试范围

来源:互联网 发布:刷花呗的淘宝店铺 编辑:程序博客网 时间:2024/06/04 23:34
public class Assignment {    static final double PI = 3.78;    static int age = 22;    public static void main(String args[]){        final int number = 2212;        int age = 25;        System.out.println("PI的值为:"+ PI);        System.out.println("age的值为:" + age);        System.out.println("number的值为:" + number);    }}
原创粉丝点击