⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oldamericandate.java

📁 Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套 代码
💻 JAVA
字号:
// Figure 9.23public class OldAmericanDate extends Date {	/**	pre:	1 <= m <= 12  	 *			and d is a sensible day for month m	 *			(Note that this method doesn't check date validity) <br>	 *	post:	day == d  and  month == m  and  year == y  	 */	public OldAmericanDate( int d, Month m, int y )  {    	super(d, m, y);	}	/**	post:	result is a string in the form 	 *			"day d during the month of m in the year of our Lord, y"	 *			where d, m and y are, respectively, day, month & year. 	 */	public String dateString()   {		return "day " + day + " during the month of " + month.name()				 + " in the year of our Lord, " + year;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -