Now it's time to do some Java coding. Before we start the actual coding, it's always a good idea to quickly identify the logic that has to be taken care of by the code we are going to write. This exercise really does help a lot.
In order to develop a controller for this scenario, let's take a look at the implementation logic that we will include in the Java-backed controller at a high level:
nodeidas an input parameter