| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
共有 1755 人关注过本帖
标题:编程思想里面的程序在我的电脑上面是错误的,请大神过来指点
取消只看楼主 加入收藏
新人学习
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:145
专家分:187
注 册:2017-10-26
结帖率:66.67%
收藏
已结贴  问题点数:20 回复次数:0 
编程思想里面的程序在我的电脑上面是错误的,请大神过来指点
public interface ClassInInterface
{
    void howdy();
    class Test implements ClassInInterface
    {
        public void howdy()
        {
            System.out.println("Howdy!");
        }
        public static void main(String[] args)
        {
            new Test().howdy();
        }
    }
}

/*
错误: 在类 ClassInInterface 中找不到 main 方法, 请将 main 方法定义为:
   public static void main(String[] args)
否则 JavaFX 应用程序类必须扩展javafx.application.Application
*/
2018-10-30 21:33
快速回复:编程思想里面的程序在我的电脑上面是错误的,请大神过来指点
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020977 second(s), 11 queries.
Copyright©2004-2025, BC-CN.NET, All Rights Reserved