地道的意思就是:你看到这些单词或单词的组合/短语你都认识,但你就是不会用。
With each trip through the loop, he was assigning a new object to the one reference variable.
----- 这里的上下文是一个for循环,就是说每一次循环的过程中
Declare a variable that will hold one element from the array. Each time through the loop,
------ 又见through the loop
But until now, we haven't looked at how state and behavior are related.
each instance of a class can have its own unique values for its instance variables.
----- 唯一的值
Well, don't you think a 70-pound dog barks a bit deeper than the little 9-pounder?
Fortunately, that's the whole point of an object - it has behavior that acts on its state.
----- that's the whole point of
you can pass values into your methods
If you declare a method to returna value, you must return a value of the declared type!
Or a value that is compatible with the declared type.
We'll get into that more when we talk about polymorphism in chapter7 and chapter 8.
The compiler won't let you return the wrong type of thing.
you don't stuff objects into variable.
---- 你不会把对象放到变量里(只会放一个引用/指针)
you can return anything that can be implicitly promoted to that type.
----- 隐式地升格为那个类型,比方说,要求的返回值是int,你可以返回一个byte
So you can pass a byte where a int is expected. The caller won't care, because the byte fits just fine into the int the caller will use for assigning the result.
You must use an explicit cast when the declared type is smaller than what you're trying to return.
In the hands of the wrong person, a reference variable(remote control) is quite a dangerous weapon.
Here's an encapsulation starter rule of thumb(all standard disclaimers about rules of thumb are in effect)
--- rule of thumb 经验法则
--- disclaimer 免责声明
Gets you out of a loop.
---- 退出循环
There are some things you'll have to take on faith.
----- 无条件地相信,坚信
A class that comes with Java.
The Math.random method returns a number from zero to just less than one.
----- 返回一个0到1(小于1)之间的数字
All that's left is the Heaper class
----- 所剩下的就是...
Java ships with hundreds of pre-built classes.
In our last chapter, we left you with the cliff-hanger. A bug.
---- left you with
---- cliff-hanger/cliffhanger 悬念
We need a way to know whether a cell has already been hit.
----- need a way
Let's run through some possibilities....
---- run through 过一遍
This array holds three values representing the ‘state’ of each cell in the DotCom’s location cells array.
----- representing...
Option one seems like more work than you’d expect.
---- more ... than you would expect
Option two is a little less clunky than option one
----- clunky 笨重的
A blank line separates the message body from the header field list, which ends with the Content-Length header field.
---- seprate ... from ...
there are seven lines of SDP data describing the media attributes that the caller Tesla desires for the call.
---- desire for...
ArrayList: Sure arrays go on the heap, duh, but an array is still a wanna-be
ArrayList. A poser. Objects have state and behavior, right? We’re clear on that. But
have you actually tried calling a method on an array?
---- wanna-be 潜在的
It uses an extensible, case-insensitive token to identify the authentication scheme, followed by a comma-separated list of attribute-value pairs which carry the parameters necessary for achieving authentication via that scheme.
----- 用冒号隔开的list就这样说 - comma-separated list of....
Let’s look again at that INVITE. If an INVITE is sent and no response is received, the INVITE is resent T1 later. If a response is still not received, the INVITE is sent 2 times the last timeout value. This doubling goes on until Timer B is reached.
------ doubling goes on