//
// Parameter.java   値渡し(call by value) サンプルプログラム
//
// Author: Kenjiro T. Miura
//         Department of Mechanical Engineering, Shizuoka University
// Date:   February 5, 1998
//


class Parameter {
    static float makeDouble(float b) {
    	b *= 2.0f;
    	System.out.println("In makeDouble() b = "+b);
    	return b;
    }
    
    public static void main(String args[]) {
        float a = 3.0f;  // 変数aの宣言と初期化
        float c;
        
        System.out.println("Before calling a = "+a);
        c = makeDouble(a);
        System.out.println("After calling  a = "+a);
        System.out.println("c = "+c);
        
    }
}
