嗨,我正在尝试通过objectA
,objectB
并且我从方法ListA()
和方法创建ListB()
,DoSomething
有人可以指导我如何做到这一点吗?
public static void main(String[] args)
{
myclass test = new myclass();
test.ListA(args[0]);
test.ListB(args[1]);
test.DoSomething(objectA, objectB);
}
public void ListA(String aaa){
objectA = Sting[];
//other codes goes here...
}
public void ListB(String bbb){
objectB = Sting[];
//other codes goes here...
}
public static void DoSomething(List<String>objectA, List<String>objectB}{
//other codes goes here...
}