How to make a cobblestone generator in minecraft?

In Minecraft, position water and lava source blocks near to each other such that the lava flows into the water and creates cobblestone.