Java examples for java.lang:Math Convert
get Temperature By Longitude
//package com.java2s; public class Main { private static final int power = 174; public static double getTemperatureByLongitude(int longitude) { double temp = power * Math.cos(Math.toRadians(90d - longitude)); return temp; }//from w w w . j a v a 2 s . com }