Java Paramenter transfer