Chinaunix首页 | 论坛 | 博客
  • 博客访问: 46734
  • 博文数量: 31
  • 博客积分: 228
  • 博客等级: 二等列兵
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-09 23:57
文章分类

全部博文(31)

文章存档

2012年(31)

我的朋友
最近访客

分类: Java

2012-04-18 22:11:17


点击(此处)折叠或打开

  1. public class Main {
  2.     public static void main(String[] args){
  3.         int[] arr = {1, 2, 3 };
  4.         System.out.println(arr[2]);
  5.         try {
  6.             System.out.println(2/0);
  7.         } catch (ArithmeticException e){
  8.             System.out.println(
  9.             "系统正在维护,请与管理员联系");
  10.             e.printStackTrace();    
  11.         }
  12.     }
  13. }

阅读(1197) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~