PoeticalJustice

导航

2017年10月14日 #

常用类一一枚举类一一定义和调用

摘要: package test; public class EnumTest { /**枚举 * */ public static void main(String[] args) { // TODO Auto-generated method stub Student stu = new Student(); ... 阅读全文

posted @ 2017-10-14 09:38 PoeticalJustice 阅读(401) 评论(0) 推荐(0) 编辑

常用类一一MATH类一一两个静态常量PI 和E,一些数学函数。

摘要: package test; public class MathTest { public static void main(String[] args) { System.out.println(Math.abs(-40.3)); System.out.println(Math.abs(40.3)); System.out.println... 阅读全文

posted @ 2017-10-14 09:35 PoeticalJustice 阅读(693) 评论(0) 推荐(0) 编辑