摘要:
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推出的标准 Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of a web 阅读全文
摘要:
文件上传过程一个单向Socket通信过程。客户端通过文件输入流读取文件,然后从Socket获取输出流写入数据。服务端从Socket中获得输入流,然后写入文件输出流,写入数据完成则上传完成。 服务端UploadServer: public class UplaodServer { public sta 阅读全文