Don't t assign 不指定
In Listing 2, you assign the timesTable function to the variable t.
在清单2中,我们将timestable函数指派给变量t。
The angle brackets assign a specific type (that is, the parameterized type) to the generic type represented by the "T" argument types.
尖括号为由 “T” 参数类型表示的泛型指定具体类型。
So if you don't actually assign to something, it falls on the floor and the value goes away.
所以是,如果你没有赋值,它掉在地上,那个值就不存在了。
Z So it would be incorrect to try to assign this to a variable X or Y or Z, because it doesn't actually give me anything back.
这个是错误的,来赋值这个给变量X或Y或,因为它的确没有返回什么给我。
- So now if Christiana doesn't actually -- if either programmer or who's programming these little puzzle pieces, don't actually do anything with this return value, and I call, get int, she wants to hand this piece of paper -- to me, but if I don't actually assign -- no, no, I just messed up the demo.
现在如果Christiana没有-,如果程序员或谁在编写这段代码,不要对这个返回值做任何事情,我调用GetInt,她把这张纸给我,但是如果我没有赋值-,不,不,我刚才把这个演示搞乱了。
应用推荐