You are given a sealed interface Command and enum SimpleCommand with commands: START, STOP, PAUSE. You are also given a CustomCommand class to handle commands that aren't define as enums. Your task is to extend the processCommand method using switch to print messages based on the enum constant.
START– "System starting"STOP– "System stopping"PAUSE– "System paused"
If a CustomCommand is provided to the switch statement instead of the three enums, then the program should print "Custom command.".
You only need to modify the processCommand method. Do not modify the remaining code.