Help with Methods Please :-)

Hi!

I am trying to write a very simple program using methods to convert between units, like from inches to cm.

Below I am trying to use the method 'inchtoCm' to convert whatever is input from inches to cm. The method call works, but it won't accept any input from the user... I know this is probably something to do with the arguments, but I'm stuck... help would be much appreciated!

Thanks, Jon

public class Q2 {

KeyboardInput in = new KeyboardInput () ;

public static void main (final String[] args)

{

Q2 anObject = new Q2 () ;

anObject.inchtoCm(); // This calls the method 'inchtoCm'

}

public double inchtoCm() // Method to convert inches to cm

{

System.out.println("Please enter the value in inches you wish to convert to cm: ") ;

double cm = in.readDouble()*2.54 ; // THIS WON'T WORK!

return cm ;

}