Here you can find the source of altitudeToFeet(double meter)
public static String altitudeToFeet(double meter)
//package com.java2s; public class Main { public static String altitudeToFeet(double meter) { return round(meter * 3.2808399) + " ft"; }//from w w w . ja v a 2 s. c om public static double round(double value) { return ((int) (value * 10) / 10.0); } }