How do you dig coal and cobblestone in minecraft without a pickaxe?

You need a pickaxe, it takes a long time to break them with other tools.