public class Input1 { /* ------------------------------------------------------- Pass information to method with parameter variable x ------------------------------------------------------- */ public static double Square( double x ) { double out; out = x * x; // x contains input information return(out); } public static void main( String[] args ) { double a, b; a = 4.0; b = Square( a ); // The value in a is passed to the parameter var x System.out.println( b) ; } }