为了账号安全,请及时绑定邮箱和手机立即绑定

JAVA中调用print方法错误

JAVA中调用print方法错误

yuanyuan_0005 2016-03-07 17:25:49
public void print(){ System.out.println("hello world"); } public static void main(String[] args) { helloworld test=new helloworld(); test.print(); } }
查看完整描述

1 回答

?
一条小咸鱼

TA贡献457条经验 获得超255个赞

你给出的代码是没错的,检查下其它地方

查看完整回答
反对 回复 2016-03-07
  • 1 回答
  • 0 关注
  • 1365 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号