parameter variables added to java constructor