问答详情
源自:1-9 经验总结

我怎么无法给数组传递值啊

book类:

public class books {

int sequence;

int name;

public  void books(int sequence,String name) {

}

}

测试函数:

public class function {


public static void main(String[] args) {

// TODO Auto-generated method stub

books[] bb={1,"高数"};

到了这里一直提示错误,值传不进去。求解

提问者:qq_M丶T_0 2018-04-10 18:58

个回答

  • Wo1verien
    2018-04-10 19:33:23

    books[] bb={new books(1,"高数")};