title: How to declare a dynamic object array in Java?
body: <p>I want to ask a question about Java. I have a user-defined object class, student, which have 2 data members, name and id. And in another class, I have to declare that object[], (e.g. <code>student stu[?];</code>). However, I don't know the size of the object array. Is it possible to declare an object array but don't know the size? thank you.</p>