摘要: Date类 package com.ITheima.API_Object; import java.util.Date; /** * 目标:学会使用Date类处理时间,获取时间的信息 */ public class Test9 { public static void main(String[] a 阅读全文
posted @ 2022-06-28 22:06 还有什么值得拥有 阅读(29) 评论(0) 推荐(0) 编辑
摘要: package com.ITheima.API_Object; public class Test6 { public static void main(String[] args) { //1 Math.abs(num) 去绝对值 返回整数 System.out.println(Math.abs( 阅读全文
posted @ 2022-06-28 14:14 还有什么值得拥有 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Student类 (重写toString() ,equals()) package com.ITheima.API_Object; import java.util.Objects; public class Student { private String name; private char s 阅读全文
posted @ 2022-06-28 11:34 还有什么值得拥有 阅读(15) 评论(0) 推荐(0) 编辑