Now that we have a skeleton class for our mediation we can begin to populate it with code, starting with a package and some import statements that we will make use of later (see Listing 1 below).
现在,我们已经获得了中介的框架类,接下来可以开始对其填充代码了,请首先添加我们将稍后使用的包和一些导入语句(请参见下面的清单1)。
Add the following package statement and import statements to the file.
将下面的软件包语句和导入的语句添加到该文件中。
The class is moved to the new package physically, and all references to it in the code - such as import statements - are changed to refer to its new location.
该类将被物理地移到新包中,并且代码中对它的所有引用—例如import语句—将改为引用其新位置。
Lines 1 through 10: package, import, and class declaration statements.
第1至10行:package、import和class声明语句。
Most projects use more than one class and more than one package. These are connected by import statements and fully package-qualified class names.
很多项目都使用不止一个类和包。
Most projects use more than one class and more than one package. These are connected by import statements and fully package-qualified class names.
很多项目都使用不止一个类和包。
应用推荐