calculate Pounds from Kilogram - Java java.lang

Java examples for java.lang:Math Convert

Description

calculate Pounds from Kilogram

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        double kg = 2.45678;
        System.out.println(calculatePounds(kg));
    }//  w  w  w  .  j  a v  a  2s. c  om

    public final static float calculatePounds(double kg) {
        return (float) (kg * 2.2);
    }
}

Related Tutorials