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.
是否可以为 ArrayList 提供 mutator 和 accessor 方法?例如,购买商品的 ArrayList。可能有很多项目。如何获得和设置方法?谢谢