Java Notes

Home首页

Java in English · for a complete beginner英文 Java · 写给完全零基础

One small page. One idea.一次只读一页,一次只学一个概念。

I know nothing about Java. I want to learn it in English, not in Chinese. So every page gives one idea, five new words, and three questions I answer out loud.我不懂 Java,而且我想用英文学,不是用中文背。所以每一页只讲一个概念、给五个新词、三道要出声回答的题。

7 lessons7 节课1 question1 道题45 words45 个词

01Start here, in this order从这里开始,按这个顺序读

Each lesson is about 600 English words. Read it once with the page read aloud, then answer the three questions at the bottom.每节课大约 600 个英文词。先点朗读跟一遍,再回答页面底部的三道题。

Lesson第几课English英文标题中文
1What is an array?数组什么是数组
2What is a linked list?链表什么是链表
3What is a tree? What is a red-black tree?树什么是树、什么是红黑树
4What is a key? A hash? A collision?哈希什么是 key、hash、冲突
5What is O(1), O(n), O(log n)?复杂度什么是 O(1)、O(n)、O(log n)
6HashMap methods in real code方法HashMap 的常用方法和真实用法
7Why is HashMap not thread-safe?线程为什么 HashMap 线程不安全

After lesson 7, read the HashMap question — it puts all seven lessons into one 60-second answer.七课上完,去读 HashMap 那道题——它把七课合成一个 60 秒的回答。

02How to read a page怎么读一页

  1. Press 🔊 at the top. Follow the words with your eyes. Twice is enough.点页面顶部的 🔊,眼睛跟着字走。两遍就够。
  2. Switch to 中英 if a sentence is too hard. Read the English first, then the Chinese.句子太难就切到 中英:先读英文,再看中文。
  3. Click ▶ hear it on five new words. Say each one out loud three times.在新词里点 ▶ hear it,听真人发音,每个词大声说三遍。
  4. Answer the three questions at the bottom out loud, not in your head.页面底部三道题要出声回答,不要只在心里想。

Twenty minutes is enough. One page a day, seven days, then you can explain HashMap.二十分钟就够。一天一页,七天之后你就能讲清 HashMap。

03Why English, and why so slow为什么要英文、为什么这么慢

In an interview the words are English: bucket, collision, resize. If I only know the Chinese word, I hear a sound I cannot follow.面试里蹦出来的是英文词:bucket、collision、resize。如果我只知道中文说法,听到的就是一串抓不住的声音。

So this site is slow on purpose. One idea per page, five words, one picture.所以这个网站是故意慢的:一页一个概念、五个词、一张图。

→New words新词

bucket /ˈbʌkɪt/ One box in the array.桶:数组里的一格 ▶ hear it
collision /kəˈlɪʒn/ Two keys that land in the same bucket.冲突:两个 key 落进同一个桶 ▶ hear it
resize /ˌriːˈsaɪz/ Make the array bigger and move items.扩容:把数组变大并搬数据 ▶ hear it
thread /θred/ One worker inside a program.线程:程序里的一个干活的 ▶ hear it
complexity /kəmˈpleksəti/ How cost grows with size.复杂度:代价随数据量的增长方式 ▶ hear it

Click ▶ hear it for real people on YouGlish; 🔊 for the computer voice.点 ▶ hear it 听真人发音(YouGlish);点 🔊 听电脑朗读。

✓Check yourself自测

  1. Say the plan for today in one sentence.用一句话说出今天要做的事。
  2. Which page are you reading today?今天你读哪一页?
  3. Say one word you learned, out loud.说出一个今天学的词,出声。

Answer out loud, not in your head.出声回答,不要只在心里想。

Start Lesson 1 →开始第 1 课 →