您好,欢迎来到纷纭教育。
搜索
您的当前位置:首页java源文件_Java源文件的命名

java源文件_Java源文件的命名

来源:纷纭教育

源文件的名字必须和public class的名字一样,大写敏感。

----------------------------------------------------------

命名为Welcome2.java

----------------------------------------------------------

/**

* This program displays a greeting from the authors.

*

* @version 1.20 2004-02-28

* @author Cay Horstmann

*/

public class Welcome {

public static void main(String[] args) {

System.out.println("Welcome to Core Java");

}

}

class Welcome2 {

public static void main(String[] args) {

System.out.println("Welcome to Core Java");

}

}

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- fenyunshixun.cn 版权所有 湘ICP备2023022495号-9

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务