原创 Broadcast Receiver監聽網絡狀態aa

在代碼中動態註冊,不需要在AndroidManifest.xml裏靜態註冊,靜態註冊在不打開App的情況下,有可以接收到廣播。 public class MainActivity extends Activity { privat

原创 grammar1

“一般” 時態 一般過去時:謂語動詞 = did(動詞的過去式)  Last year Japan experienced 2,125 incidents of school violence... (2000, Reading Com

原创 grammar2

(一)名詞、代詞作主語、賓語、表語  The process is natural selection. (2008, Use of English)  But most law graduates never get a big-f

原创 grammar5

第一章 並列句 (一)並列句的構成  The financial fallout has begun, and the political fallout may not be far behind. (2007, Reading Co

原创 grammar4

一、 非謂語動詞作定語/狀語 非謂語動詞作定語 1. It also raises questions concerning "values." (2002, Translation) 2. A team of researchers w

原创 grammar3

一 、限定詞修飾名詞  The roughly 20 million inhabitants of these nations looked hopefully to the future. (2007, Use of English)

原创 Redis數據類型的底層實現原理

redis 數據類型的底層實現原理

原创 ConcurrentHashMap的原理

以JDK1.8爲例: 在JDK8中進行了巨大改動,它摒棄了Segment(鎖段)的概念,它沿用了與它同時期的HashMap版本的思想,底層由Node數組+鏈表+紅黑樹的方式思想,爲了線程安全,採用了Synchronized和CAS樂觀鎖機

原创 java中垃圾收集的方法有哪些?

標記-清除: 這是垃圾收集算法中最基礎的,根據名字就可以知道,它的思想就是標記哪些要被回收的對象,然後統一回收。這種方法很簡單,但是會有兩個主要問題:1.效率不高,標記和清除的效率都很低;2.會產生大量不連續的內存碎片,導致以後程序在分

原创 26-50

1.This success, coupled with later research showing that memory itself is not genetically determined, led Ericsson to c

原创 51-66

51. While warnings are often appropriate and necessary--the dangers of drug interactions, for example--and many are req

原创 1-25

1.This success, coupled with later research showing that memory itself is not genetically determined, led Ericsson to c

原创 C語言基礎及例程

輸入輸出函數 %d -  int %ld – long int %hd – 短整型 %c  -char %f - float %lf – double %u – 無符號數 %x – 十六進制輸出 int 或者long int 或者shor

原创 The decision of the New York

Text 1     The decision of the New York Philharmonic to hire Alan Gilbert as its next music director has been the talk

原创 Of all the changes

Text 1      ①Of all the changes that have taken place in English-language newspapers during the past quarter-century, p