Four Liters of Water

There are two empty bottles of capacities 3 liters and 5 liters. How can you get 4 liters of water from the 8 liter bottle which is full of water?

This Java Applet is made by Walter Fendt.

1