/** * This utility class converts newtons to dynes. * * @author Franck van Breugel */ public class NewtonToDyne { private NewtonToDyne() {} /** * Number of dynes per newton. */ public static final int DYNES_PER_NEWTON = 100000; /** * Converts the given number of newtons to the corresponding number of dynes. * * @param newton the number of newtons. * @pre. newton >= 0 && newton <= 100 * @return the number of dynes corresponding to the given number of newtons. */ public static int convert(int newton) { return newton * NewtonToDyne.DYNES_PER_NEWTON; } }