摘要: 7.Math类 常用方法 public class Common07 { //Math类 public static void main(String[] args) { /** *Math.sqrt()//计算平方根 *Math.cbrt()//计算立方根 *Math.pow(a, b)//计算a 阅读全文
posted @ 2022-07-06 17:03 风雨2 阅读(26) 评论(0) 推荐(0)
摘要: 5.SimpleDateFormat类 简单的一些运用 public class Common05 { //SimpleDateFormat类 public static void main(String[] args) { Date date = new Date(); SimpleDateFor 阅读全文
posted @ 2022-07-06 17:02 风雨2 阅读(34) 评论(0) 推荐(0)
摘要: 3.File类 1.基本属性 public boolean canRead() public boolean exists() public boolean isFile() public long lastModified() public String getName() public bool 阅读全文
posted @ 2022-07-06 17:00 风雨2 阅读(50) 评论(0) 推荐(0)