05 2015 档案
摘要:public static byte[] toBinary(String filename) throws IOException{ if(!ParameterChecker.startWithProtocol(filename)){ if(filenam...
阅读全文
摘要:Date.prototype.format =function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "H+" : th...
阅读全文
摘要:奇偶排序法的思路是在数组中重复两趟扫描。第一趟扫描选择所有的数据项对,a[j]和a[j+1],j是奇数(j=1, 3, 5……)。如果它们的关键字的值次序颠倒,就交换它们。第二趟扫描对所有的偶数数据项进行同样的操作(j=2, 4,6……)。重复进行这样两趟的排序直到数组全部有序。 pu...
阅读全文
摘要:public static void quickSort(int[] arr, int low , int height){ int l=low, h = height; if(low arr[low]){ ...
阅读全文
摘要:Java 代码 设置response header response.setDateHeader("Expires", 0); response.setHeader("Cache-Control", "no-cache"); response.setHead...
阅读全文
摘要:String address = "http://sports.sina.com.cn/nba/live.html?id=2015050405"; URL url = new URL(address); HttpURLConnection connecti...
阅读全文