摘要:
包装类(Warpper) 除了Boolean和Character其他六个包装类都是继承的Number 包装类和基本数据类型的转换(以int为例,其他类型以此类推) // 手动装箱 int -> Interger int n1 = 100; Integer integer = new Integer( 阅读全文
posted @ 2021-12-26 20:41
紫英626
阅读(102)
评论(0)
推荐(0)
摘要:
传统方法 package oop.program; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; public class SmallChangeSys01 { public s 阅读全文
posted @ 2021-12-26 20:34
紫英626
阅读(131)
评论(0)
推荐(0)
摘要:
整体结构 工具类——Utility package oop.houserentexercise; /** 工具类的作用: 处理各种情况的用户输入,并且能够按照程序员的需求,得到用户的控制台输入。 */ import java.util.*; /** */ public class Utility { 阅读全文
posted @ 2021-12-26 20:32
紫英626
阅读(190)
评论(0)
推荐(0)
摘要:
1. /** * @author 紫英 * @version 1.0 * @discription 接口作业 */ public class Homework { public static void main(String[] args) { Person person = new Person( 阅读全文
posted @ 2021-12-26 20:25
紫英626
阅读(65)
评论(0)
推荐(0)

浙公网安备 33010602011771号