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

Creating a Java class

Use the java-new-class command to add a non-final HelloJBossWorld class to the beosbank-forge-demo project:

[beosbank-forge-demo]$ java-new-class
***INFO*** Required inputs not satisfied, entering interactive mode? Package Name (The package name where this type will be created) [com.beosbank.forge.demo]: HIT ENTER
* Type Name (The type name): HelloJBossWorld
? Extends (The type used in the extends keyword):
? Interfaces []:
? Is Final? [y/N]: N
? Is Abstract? [y/N]: N
? Is Serializable? [y/N]: Y
***SUCCESS*** Class com.beosbank.forge.demo.HelloJBossWorld was created
[HelloJBossWorld.java]$

The new class is empty; you may wonder how to add attributes and methods to this newly created class using the Forge console.

主站蜘蛛池模板: 许昌县| 夏津县| 赤水市| 金乡县| 铜山县| 林西县| 叶城县| 眉山市| 伊春市| 浦县| 忻州市| 璧山县| 高雄市| 武汉市| 鄂托克前旗| 赤水市| 峨眉山市| 全南县| 富源县| 仁布县| 墨江| 福海县| 河曲县| 彩票| 太仆寺旗| 阿克| 名山县| 宁陕县| 长寿区| 开化县| 福建省| 利辛县| 永康市| 邯郸市| 会宁县| 长宁县| 枣强县| 克拉玛依市| 清苑县| 呼伦贝尔市| 乌审旗|