摘要: package baozhuanglei; public class IntTest { public static void main(String[] args) { //创建一个Integer对象 Integer i=new Integer(233); //转换成十进制 Integer i1=Integer.valueOf ("100",2); ... 阅读全文
posted @ 2017-04-23 20:45 苏轼的红烧肉 阅读(109) 评论(0) 推荐(0) 编辑
摘要: package zuizhong; public class Dict { DicItem[]dict=new DicItem[5]; class DicItem{ String en; String ch; public DicItem(String en, String ch) { super(); this.en =... 阅读全文
posted @ 2017-04-23 16:48 苏轼的红烧肉 阅读(157) 评论(0) 推荐(0) 编辑
摘要: package boa; import java.util.Scanner; public class TestSystem { public static void main(String[] args) { //方法1;输出 //方法2:退出jvm System.exit(0) //方法3:数组复制arraycopy() //方法4:获得当前的系统时间;l... 阅读全文
posted @ 2017-04-23 15:36 苏轼的红烧肉 阅读(153) 评论(0) 推荐(0) 编辑
摘要: package zuizhong; public class Test5 { public static void main(String[] args) throws Exception { try { int s=divide(100, 0); } catch (Exception e) { throw e; } ... 阅读全文
posted @ 2017-04-23 13:56 苏轼的红烧肉 阅读(133) 评论(0) 推荐(0) 编辑