摘要:
public static int rank(int key, int[] a) { int lo = 0; int hi = a.length - 1; while(lo <= hi) { int mid = lo + (hi - lo) / 2; if(key < a [mid]) hi = m 閱讀全文
摘要:
Web Worker是 HTML5推出的標(biāo)準(zhǔn) Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of a web 閱讀全文
摘要:
文件上傳過程一個(gè)單向Socket通信過程。客戶端通過文件輸入流讀取文件,然后從Socket獲取輸出流寫入數(shù)據(jù)。服務(wù)端從Socket中獲得輸入流,然后寫入文件輸出流,寫入數(shù)據(jù)完成則上傳完成。 服務(wù)端UploadServer: public class UplaodServer { public sta 閱讀全文