How could I determine if one rock is denser than another rock?

This is not a stupid answer but it seems obvious to me that you could measure the density.