import java.io.*; import java.text.*; public class acres2ha { static final double FACTOR =2.47; public static void main(String args[])throws IOException { double acres=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(); getHectares(acres); } public static void getHectares(double acres) { double hectares=acres/FACTOR; System.out.println(acres+" = "+hectares+" hectares."); } }