How do you tell the gender of an ant?

How do you tell the gender of an ant?

Put it in a glass of water. If it sinks its a girl ant. If it floats its buoyant.