public class Hello { public static void main (String args[ ]) { System.out.println("你好,很高兴学
publicclassHello{publicstaticvoidmain(Stringargs[]){System.out.println("你好,很高兴学习java"...
public class Hello
{
public static void main (String args[ ])
{
System.out.println("你好,很高兴学习java"); //命令行窗口输出"你好,很高兴学习Java"
A a=new A();
a.fA();
}
}
class A
{
void fA()
{
System.out.println("We are students"); //命令行窗口输出"We are students"
}
}错在哪里? 展开
{
public static void main (String args[ ])
{
System.out.println("你好,很高兴学习java"); //命令行窗口输出"你好,很高兴学习Java"
A a=new A();
a.fA();
}
}
class A
{
void fA()
{
System.out.println("We are students"); //命令行窗口输出"We are students"
}
}错在哪里? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询