java: 无法将类 TestEx1中的构造器 TestEx1应用到给定类型; 需要: int,int 找到: 没有参数 原因: 实际参数列表和形式参数列表长度不同

public class TestEx1 {

private int a,b,c;

public TestEx1(int a,int b){

    this.a=a;

    this.b=b;

}

public void test1(){

}

public void test1(int t){

}

public void test1(float t){

}

public void test1(float t1,int t2){

}

public int test1(double d){

    return this.a;

}

/* public void test1(){

    return this.a;

}*/

public static void test2(){

}*/

public static void main(String[] args) {

    TestEx1 tEx1 = new TestEx1();

    TestEx1 tEx2 = new TestEx1(10,100);

    tEx1.test1();

    TestEx1.test1(10.0f);

    TestEx1.test2();

}

}

你定义一个无参构造,tex1才能用