我正在处理下面的代码,其中我有两个java文件A.java和m.java。代码如下所示,由于上面的代码更改,我将进入一个循环。我试图在m.java中使用@inject for A class对象来删除循环,但在执行_a.doSomething()时,它给出了空异常。class A {
/* do the necessary initialization */ this(x,y,z,m(new A(x,y,z)))}class m {
我不能像下面这样在服务类(服务类)中使用sort()方法,并且它显示了类似于“询问我在'util‘包中创建集合类”的错误。@Service ArrayList<Student> l=new ArrayList<Student>();
l.add(new Student(10,"John"));//convert string object to S