斗地主排序
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/55dad72e62ccf91c26b7e5ae90929917.png)
创建数组
1.int [ ] a=new int [2];
2.int [ ] b=new int[ ]{1,2};
3.int c={1,2};
异常
常见异常种类
1.算术异常类:ArithmeticExecption
2.数组下标越界异常:ArrayIndexOutOfBoundsException
3.空指针异常类:NullPointerException
异常处理方法
1.jvm处理
2.自己处理 (1) try catch finally
(2) throws
异常的类型
1.运行时异常 extends RuntimeException
2.编译异常 必须自己处理