清单4.接收JMS消息的代码范例。
清单3.发送JMS消息的代码范例。
需要避免的代码范例会有明显的红色标题。
我们在大多课堂上会散发一些,印着我们要做的,代码范例的资料。
What we will distribute for most lectures is a handout that's mostly code examples that we're going to do.
接下来的部分将会进一步地解释,怎样使用这些信息以呈现这些对话框以及代码范例。
The following sections will explain, in detail, how this information is used to present these dialogs, with code examples.
避免标志着我们决不应该做的事。需要避免的代码范例会有明显的红色标题。
Avoid indicates something you should almost never do. Code examples to avoid have an unmistakable red header.
如下面的代码范例所示,该Servlet实例化了一个UserDataBean ,并设置了其中的所有参数。
The servlet instantiates a UserDataBean and then sets all the parameters in it, as shown in the code example below.
接下来的范例代码首先打开了问题视图,然后检查问题视图是否包含有一个条目。
The following sample code first opens the Problems view, then checks whether the Problems view contains an entry.
我们可能有很多作为条目的目录,附属的范例代码会处理这些目录。
It would also be possible to have more catalogs as entries, which the attached sample code does handle.
接下来的范例代码首先会检查测试用例完成以后日志文件是否做了一个条目。
The following sample code first checks if an entry is made to the log file after the test case completes.
当变量在线程中准备好时,您可以使用列表10中所示的范例代码,来在用户线程中运行代码以实现全球化。
When the variable in ready inside of that thread, you can use the sample code listed in Listing 10 to get the globalization working for codes running in the user thread.
我所了解的好的软件开发人员可能偶尔较早地交付产品,以满足客户的需要,但是他们绝不会将自己编写的隐藏着错误的代码当成范例拿给他人。
The good software developers I know might on occasion release their software early to satisfy customer demands, but they would never hold up their bug-ridden code as a model for others.
本文的引言部分介绍的是如何修改该系列第一部分的范例代码。
The instructions in this article help you modify the sample code in the first part of this series.
列表10给出了范例代码。
这样做有点困难并且会使代码难于阅读,因为它是混合范例(含有伪oo设计的过程语言)。
It's a tad more difficult and can make the code more difficult to read because it's mixing paradigms (procedural language with pseudo-OO design).
上面这一行包含斜体字的代码就是一个范例。
The code line above with its italicized pieces is an example of a syntax template.
我开始将我单元测试中初始化任务库各个类的范例代码替换成我尚未实现的DSL的范例代码,并且修改了数次,直到我满意为止。
I began by replacing the example code in my unit test which instantiates the task library's classes with example code for my unimplemented DSL and revised it several times until I was satisfied.
下面是一些范例代码,它们演示了可以使用API的方式。
使用列表1、3、4、8、9中代码表示的文本文件提供的范例代码。
Use the code samples provided in this TXT file for code listings 1, 3, 4, 8, and 9.
考虑一下路径范例,列表3向您展示了怎样书写代码以找到PlaceOrder按钮?
Considering that path example, Listing 3 shows how you can write the code to find the Place Order button.
代码清单2中的范例使用waitForExistence 方法,它会等到一个对象出现时才会执行。
The example in code Listing 2 uses the waitForExistence method, which waits until an object appears.
表1.使用通用类型建立图书馆系统模型的范例代码。
Listing 1. Sample code for the library system modeled using generics.
不过请放心,在《15天jQuery入门》即将结束的时候,你将看到一些更高级的应用教程,范例和代码。
Rest assured, before we get to the end of the 15 Days of jQuery you're going to see some more advanced tutorials, examples, and code.
比较可行的做法可能是用Duby来实现新代码和扩展,提供范例帮助Ruby爱好者们也来这么做。
It may be more likely we would use Duby to implement new code and extensions, and provide examples to help Rubyists to do the same.
列表9 中的代码在以下方面与列表6十分相似:从服务器端获取模式和场所信息,创建一个NumberConverter的范例,然后执行该任务。
The code in Listing 9 is pretty much like Listing 6 in that it derives pattern and locale information from the server side, sets up an instance of NumberConverter, and then performs the task.
JNDI名是您的代码用来查找数据源的唯一标识符。本文的范例代码使用jdbc/OracleXADS 作为 JNDI 名。
The JNDI name is the unique identifier your code will use to lookup the data source; this article's example code uses jdbc/OracleXADS.
大多数例子同样链接到代码的完整范例,让您可以在portlet里面合适的方法上下文中查看代码。
Most of the examples are also linked to fuller examples of the code, allowing you to see the code in the context of the appropriate method within the portlet.
您可以使用本文来学习代码,或者只是从下载资源中所包含的范例处开始。
You can use this article to study the code, or just start with the examples included in the download.
此案例研究包括许多工作产品范例,从业务用例到源代码,以整个项目生命周期的不同完成状态进行显示,如表2所示。
The case study includes numerous work product examples, from business case to source code, shown at different completion states over the project lifecycle, as illustrated in Table 2.
为了对转换前后的代码不同有一个总体了解,我们提供了两种WorldClockportlet的范例源代码。
For a better overview about the code differences that result from this conversion, we provide sample source code of both WorldClock portlets.
应用推荐