官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We name our interface TimeService.java, which contains a single method definition getTime() ."

A block of code will be set as follows:

@Stateless
public class TimeServiceBean implements TimeService {
public String getTime() {
Formatter fmt = new Formatter();
Calendar cal = Calendar.getInstance();
fmt.format("%tr", cal);
return fmt.toString();
}
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

@Stateless
public class TimeServiceBean implements TimeService {
private @EJB NiceDayService niceDay;
public String getTime() {
Formatter fmt = new Formatter();
Calendar cal = Calendar.getInstance();
fmt.format("%tr", cal);
return fmt.toString() +
niceDay.getMessage();
}
}

Any command-line input and output is written as follows:

C:\EJB3Chapter02\glassfish\lab1\build>jar -tvf TimeService.jar

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: " Under the Web Services heading in the Common Tasks pane on the left of the screen, click on Arithmetic ."

Note

Important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 抚顺市| 开鲁县| 开远市| 彰化县| 论坛| 永吉县| 五常市| 西和县| 甘洛县| 大同市| 石柱| 平定县| 徐州市| 固始县| 贡山| 都昌县| 三河市| 新宁县| 交城县| 佛山市| 崇左市| 施秉县| 汝州市| 肥东县| 义乌市| 邓州市| 射阳县| 磐石市| 盘山县| 迭部县| 新丰县| 新野县| 通州市| 福清市| 天祝| 宽甸| 开阳县| 天津市| 阳春市| 金华市| 离岛区|