- 博客(250)
- 收藏
- 关注
原创 java_Arrays数组排序 源码解读
java_Arrays数组排序 源码解读  { //演示int --> Integer 的装箱和拆箱 //jdk5之前是手动装箱和拆箱 //手动装箱 int -> Integer int n1 = 100; Integer integer = new Integer(n1); //上下两种都可以 Integer in
2021-09-29 09:25:39
101
原创 java-自定义异常
java-自定义异常 源码 package com.chapter433.Exception; public class CustomException { public static void main(String[] args) { int age = 180; //要求范围在18-120之间 否则会抛出一个自定义异常 if (!(age >= 18 && age <=120)){ throw new AgeException(“年龄需要在18~120之间”); }
2021-09-23 23:09:53
362
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1