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

这是错哪了?

这是错哪了?

溯源1 2017-07-24 22:11:30
package com.imooc;public class sayhello { public static void main(String[] args) { // TODO Auto-generated method stub sayhello anybody=new sayhello(); anybody.hello(); anybody.hello("小明"); } public void hello() { System.out.println("hello!"); } public void String(String name) { System.out.println("hello,"+name+"!"); } }
查看完整描述

2 回答

已采纳
?
萧欢打靶把营归

TA贡献63条经验 获得超16个赞

第二个函数 void String()应该敲错了

查看完整回答
反对 回复 2017-07-24
  • 2 回答
  • 0 关注
  • 1165 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信