05 2017 档案
摘要:使用匿名对象版~ 确实简洁了很多。。Go Go Go ~
阅读全文
摘要:import java.util.*; import java.text.*; public class TestDateFormat { public static void main(String[] args) { SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd"); Si...
阅读全文
摘要:ArrayList al = new ArrayList(); //数组定义 //遍历数组: int sum = 0; Iterator itr = al.iterator(); while(itr.hasNext()){ Integer intObj = (Integer)itr.next(); sum += intObj.intValue(); }
阅读全文
摘要:public class ArrayTest9 { public static void main(String[] args){ //数组的排序 int[] arr = {23,3242,32422,1}; printArray(arr); selectSort(arr); printArray(arr);...
阅读全文
摘要://十进制转为十六进制 public class ArrayTest7 { public static void main(String[] args){ System.out.println(toHex(60)); } //十进制转为十六进制的每一位都是十六进制元素中的某一个 //十六进制的元素有很多固定个数,而且还有对应的编号。所以可...
阅读全文
摘要:public class ArrayTest3 { public static void main(String[] args){ System.out.println(toHex(60)); } //将十进制转为16进制 public static String toHex(int num){ char[] chs = new char[8];//定义容器,存储的是字符...
阅读全文

浙公网安备 33010602011771号