If it doesn't matter the order why not just print twice one loop? Depends on what type of data you are storing and the purpose of the Obj. If its just ints a list would be fine.