作者:朱永红2602897625 | 来源:互联网 | 2024-10-21 03:16
Icreatedaclass,andIwanttocreatesomeglobalarraysforthisclassinordertoallowallmeth
I created a class, and I want to create some global arrays for this class in order to allow all methods of the class to use them. Problem is I don't know the size of the arrays in the first place. The size is based upon a file I read using JAVA's code. How can I define those arrays (Global) with the information I receive from the file?
我创建了一个类,我想为这个类创建一些全局数组,以便允许类的所有方法使用它们。问题是我首先不知道数组的大小。大小基于我使用JAVA代码读取的文件。如何使用从文件中收到的信息定义这些数组(全局)?
**Got no problem with reading the file itself and retrieve information from it.
**读取文件本身并从中检索信息没有问题。
Thanks :)
谢谢 :)
1 个解决方案