[求助]重载问题
哪里错了!在线等!谢谢public class Class12
{
void hi()
{
System.out.println("Hello java!");
}
void hi(String name)
{
System.out.println(name+"先生");
}
void hi(String name1,String name2);
{
System.out.println(name1+"女士,"+name2+"先生!");
}
public static void main(String[] args)
{
Class12 aa=new Class12();
aa.hi();
aa.hi("雪儿");
aa.hi("雪儿","风儿");
}
}