A FUNCTIONAL IMPLEMETATION OF SWITCH-CASE CONSTRUCTION IN JAVA 8 LANGUAGE
The article discusses the shortcomings of the multiple choice operator in the Java 8 language. A method for the functional implementation of a new operator with significant advantages over the switch-case construct in Java 8 is proposed. The new multiple choice operator is implemented as a library and does not require changes to the Java 8 compiler.