Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要编写一个数组来为我用 Java 编写的程序分配 5 件东西的空间,我是新手,需要帮助。
你可以这样做:
private Object[] myObjects = new Object[5];
根据需要更改类型。