how to autodeclare floats in java code example Example: java initialize float to zero float zero = 0.0f;