Figure 24 shows how to add a breakpoint to line 47 of your servlet, where you declare the variable numB.
图24显示出如何在servlet的第47行(声明了变量numB)加入断点。
Imagine writing two methods that each declare a locale variable with the exact same name.
想象一下,如果写了两个方法,每个都声明了一个局部变量,且名字一致。
The first line USES the val keyword to declare a read-only variable named book.
在第一行我们使用了val关键字来声明一个只读变量book。
What's going on underneath the hood is we'll see pictorially X today is that when I declare this X, this variable X here.
底下所做的,我们将看到,当我声明这个X,这个变量。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
And actually, if I don't want to clobber, as we say, overwrite the value of my variable, ; I could declare another one and store the return value in Y; Y so now I have two ints in memory; X and Y, 3 one with two, one with three.
实际上,如果你不想彻底清除,像我们说的,覆盖那个变量的值,我可以申明另一个变量Y,并在Y中保存那个返回值;,现在内存中有两个int数,X和,一个的值为2,一个为。
应用推荐