随笔分类 -  java 基础

java 基础
摘要:1.接口 Executor void execute(Runnable command) 在未来某个时间执行给定的命令。 2.接口 public interface ExecutorService extends Executor submit(Runnable task) 提交一个 Runnabl 阅读全文
posted @ 2019-09-02 19:47 zp007 阅读(166) 评论(0) 推荐(0)
摘要:接口 Queue<E> boolean add(E e) 将指定的元素插入到此队列的尾部(如果立即可行且不会超过该队列的容量),在成功时返回 true,如果此队列已满,则抛出 IllegalStateException。 boolean offer(E e) 将指定的元素插入到此队列的尾部(如果立即 阅读全文
posted @ 2019-07-06 15:31 zp007 阅读(163) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2019-06-15 23:50 zp007 阅读(235) 评论(0) 推荐(0)