阅读背景:

如何在创建它的方法之外访问对象数组

来源:互联网 

I two classes, A and B. I have a method demo() in class A, that creates an array of objects and by using a previous array1 of ints to get a value 'v3' I will create 'array2' of array1 length. And hence create a new object of array2 with parameters v1,v2,v3. I also have some getter/setters in class B for v1/2/3. I then want to access each element likeI two classes, A and B. I have a method demo()




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: