This selection does not support run mode我知道中文意思,就是不知道为什么会这样class A {String name;public A(String x){name=x;}public void func1(){System.out.println("func1 of "+name+"is calling");}public void func2(){A a2=new A("a2

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/14 11:35:34
Thisselectiondoesnotsupportrunmode我知道中文意思,就是不知道为什么会这样classA{Stringname;publicA(Stringx){name=x;}publ

This selection does not support run mode我知道中文意思,就是不知道为什么会这样class A {String name;public A(String x){name=x;}public void func1(){System.out.println("func1 of "+name+"is calling");}public void func2(){A a2=new A("a2
This selection does not support run mode
我知道中文意思,就是不知道为什么会这样
class A {
String name;
public A(String x)
{
name=x;
}
public void func1()
{
System.out.println("func1 of "+name+"is calling");
}
public void func2()
{
A a2=new A("a2");
a2.func1();
}
}
class TestA
{
public static void main(String [] args)
{
A a1=new A("a1");
a1.func2();
}
}
这是原程序

This selection does not support run mode我知道中文意思,就是不知道为什么会这样class A {String name;public A(String x){name=x;}public void func1(){System.out.println("func1 of "+name+"is calling");}public void func2(){A a2=new A("a2
该选项不支持运行模式~
P.S.Sorry,I've no idea,either~要不去电脑程序分类问问?