dreampolice
Technical User
I have alot of lines that call setter methods. Anyway to put this all in another class and call it so I dont have to list all these in my current class?
Code:
PersonClass chalk = new PersonClass();
chalk.setHeight(request.getParameter("height"));
chalk.setWeight(request.getParameter("weight"));
chalk.setCountry(request.getParameter("country"));
chalk.setLanguage(request.getParameter("language"));
chalk.setExperience(request.getParameter("experience"));
chalk.setLevel(request.getParameter("level"));
.......//goes on for 20 more lines
...