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

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.

主站蜘蛛池模板: 安吉县| 伊通| 祁连县| 灵宝市| 河池市| 新蔡县| 阿尔山市| 陆丰市| 鄱阳县| 旬邑县| 台前县| 翼城县| 河津市| 临夏县| 枣庄市| 改则县| 资中县| 三河市| 凤山县| 城固县| 章丘市| 扎囊县| 浑源县| 龙井市| 邵东县| 会泽县| 嘉荫县| 汕头市| 历史| 外汇| 宝清县| 平顺县| 抚顺市| 秭归县| 新乡市| 威海市| 泰来县| 历史| 昌都县| 许昌县| 集贤县|