Use Methods with Parameters in Java