I want to program the following application with JavaFx:
The program generates math tasks which the user has to solve. With check boxes you can decide which operators (+ - * /) will occur. If all 4 options are checked, every operator should be used once. So the output will be something like this:
4+3-2*1/2
My problem is that I have no idea how I can store the selected operators and how I can insert them later on in the program as a working operator and not as a char or string because in the end the program has to compare the users solution with the calculated solution from the computer.
Thank you for your help and suggestions I really hope someone can help me with this.
Define an
enum, egYou can verify using by examining
ArithmeticOperator.values().