This discussion is archived
1 2 3 Previous Next 32 Replies Latest reply: Mar 13, 2007 7:28 AM by 807606 RSS

quick question how to wrie entire array in one go without loop

807606 Newbie
Currently Being Moderated
I have the following loop, which goes around store array and write each element to file one at a time, i have been told that i can do this an easy way by writting the entire array at once. Can anybody tell me how to do this?
int storeSize = store.getCount();
for (int i = 0; i<storeSize;i++)
output.writeObject(store.elementAt(i));
1 2 3 Previous Next