About parameters: How exactly do they work?
public class something{ Private final char choiceofthree; Private static final char one = 'a'; Private static final char two ='b'; Private Static final char three='c'; //left out a lot Public something(char choiceofthree){ //choiceofthree is supposed to be one of the three characters }} new something - > char as input needed But: choiceofthree was supposed to == one, two or three Problem: no test and to changing since final Solution: different non final parameter in head, then test, then assigning to final variable choiceofthree Conflict: changed this code, requirements that were given to me by the teacher Was that the right thing to do or is there another way? If I call a constructor or method with parameters it always wants input. But how do I handle it if that input has to meet certain requirements? When calling it, is it just "OK, leave it, the method will then do it and what comes in first doesn't matter"? The task is a questionnaire, so most of the parameters/variables refer to user input.