文件名称:3
- 所属分类:
- JSP源码/Java
- 资源属性:
- [WORD]
- 上传时间:
- 2014-04-23
- 文件大小:
- 111kb
- 下载次数:
- 0次
- 提 供 者:
- 明*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1.设计和实现一个Soundable接口,该接口具有发声功能,同时还能调节声音大小。Soundable接口的这些功能将会由3种声音设备来具体实现,他们分别是收音机Radio、随身听Walkman和手机Mobilephone。同时需要设计一个应用程序类来使用这些实现了Soundable接口的声音设备类。在程序运行时,先询问用户想听那种设备发出声音,然后程序就会按照该设备的工作方式来发出声音(验证性实验)。
2.程序会要求用户以规范的格式输入自己的生日日期,然后将使用Date类和Calendar类中的方法计算出用户的生日是星期几,用户的年龄以及出生的年份是否是闰年。-1 Design and implement a Soundable interface, which has sound capabilities, while also adjust the volume. These features Soundable interface will be implemented by the three kinds of specific sound devices, they are Radio Radio, Walkman and the Walkman phone Mobilephone. At the same time the need to design an application class to use them to achieve a sound device class Soundable interface. When the program runs, the first asks the user to hear the kind of sound equipment, then the program will work according to the device sounds (confirmatory test).
2 The program will ask the user to standardize the format of the input date of his birthday, and then calculate the user s birthday is a few weeks using the Date and Calendar classes class method, the user s age and year of birth of whether it is a leap year.
2.程序会要求用户以规范的格式输入自己的生日日期,然后将使用Date类和Calendar类中的方法计算出用户的生日是星期几,用户的年龄以及出生的年份是否是闰年。-1 Design and implement a Soundable interface, which has sound capabilities, while also adjust the volume. These features Soundable interface will be implemented by the three kinds of specific sound devices, they are Radio Radio, Walkman and the Walkman phone Mobilephone. At the same time the need to design an application class to use them to achieve a sound device class Soundable interface. When the program runs, the first asks the user to hear the kind of sound equipment, then the program will work according to the device sounds (confirmatory test).
2 The program will ask the user to standardize the format of the input date of his birthday, and then calculate the user s birthday is a few weeks using the Date and Calendar classes class method, the user s age and year of birth of whether it is a leap year.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3.doc