Don't try any code at all until you have worked out what you want to do.
Get a pencil and paper, and a large eraser (far and away the most important piece of hardware ever
)
Write down what you are starting from and what you want to finish with. The starting point is easy:
10051 1234567 150.00
10052 1234568 200.00
10051 1234569 120.00
Now what do you intend to finish with? Do you want 10051 and a record of all his orders put together? Write down what the data will look like when you put them all together. Erase it and start again, and repeat until you are happy with what you have got.
Look at the diagram now. Can you see any pairings or combinations which you can create objects to encapsulate? Can you see any way of creating a Customer object? Add more orders for 10051, and see what your diagram looks like now.
Go to the
Java™ Tutorials, and read through all the well-known interfaces in the Collections Framework. Draw a diagram for what each interface in the framework looks like. See whether you can see any analogies to your first diagram.