//calls a method from outside a class by reating an instance of the Simplemetre clas
// and calling the mthod
//converts metres to inches

import java.io.*;
import SimpleMetre;

public class SimpleChangeCall

{

	public static void main (String args[]) throws IOException 
	
	{

		//create a bufferreader object rd to read the inputStreamReader
		BufferedReader rd = new BufferedReader(new InputStreamReader(System.in));

		SimpleMetre sm = new SimpleMetre();

		String s= new String();
		double metre,inches;

		System.out.print("Enter number of metres ");
		System.out.flush();
		s=rd.readLine();

		Double m=new Double(s);  // converts string to float
		metre=m.doubleValue();   //sets metres equals to m
		inches = sm.convertMetre(metre);  // uses the convert method to convert metres to inches

	System.out.println("There are " + inches + " inches in " + metre + " metres");

	}//ends the main

}//ends the class
