Converts inches to centimeters. - Android java.lang

Android examples for java.lang:Math Convert

Description

Converts inches to centimeters.

Demo Code


//package com.java2s;

public class Main {
    /**/*from w  ww  .  j a  v a 2  s. co  m*/
     * Converts inches to centi-meters.
     * 
     * @param inches to be converted.
     * @return value converted to centi-meters.
     */
    public static double inchesToCm(double inches) {
        return inches * 2.54;
    }
}

Related Tutorials