随笔分类 - java 基础
java 基础
摘要:1.接口 Executor void execute(Runnable command) 在未来某个时间执行给定的命令。 2.接口 public interface ExecutorService extends Executor submit(Runnable task) 提交一个 Runnabl
阅读全文
摘要:接口 Queue<E> boolean add(E e) 将指定的元素插入到此队列的尾部(如果立即可行且不会超过该队列的容量),在成功时返回 true,如果此队列已满,则抛出 IllegalStateException。 boolean offer(E e) 将指定的元素插入到此队列的尾部(如果立即
阅读全文
摘要:1.get请求方式 2.Post请求 1 public void httpPost() throws Exception { 2 Log.e(TAG, " httpPost "); 3 URL url = new URL("url地址"); 4 HttpURLConnection conn = (H
阅读全文
浙公网安备 33010602011771号