How many grams are in a milliliter?

It depends on what the material is. If you know the density in grams/milliliter, the number of grams for 1 mL is numerically equal to the density.