Switch tasks

Java Multithreading
Level 8 , Lesson 2
Available

"Hi, Amigo!"

16
Task
Java Multithreading, level 8, lesson 2
Locked
Mastering switch
Implement the switchTest method: 1. Don't use conditional operators. 2. Use 1 switch with 2 cases and 1 default. 3. Expected output: Output for E1.A: "it's E1.A", Output for E1.B: "it's E1.B", Output for E1.C: "it's E1.C", Output for E1.Y: "it's E1.Y", Output for E2.D: "it's E2.D".
Comments (2)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Andrei Level 41
17 May 2021
Good exercise, not too difficult but makes you think how you could make it work. Enjoyed it!
Szymon Level 41, Warsaw, Poland
5 May 2021
The solution seems very inelegant.