private void copy(MyStorage other_st) { for (int i = 0; i < other_st.count; ++i) { this.add(other_st.getObj(i)); } }