import java.io.*; import java.text.*; public class acres2ha2 { static final double FACTOR =2.47; public static double getHectares(double acres) { double hectares=acres/FACTOR; return hectares; } public static void main(String args[])throws IOException { double acres=0.0; double ha=0.0; BufferedReader in=new BufferedReader (new InputStreamReader(System.in)); System.out.print("Please enter the number of acres: "); acres=Double.valueOf(in.readLine().trim()).doubleValue(); ha=getHectares(acres); System.out.println(acres+" = "+ha+" hectares."); } }