We can use Feature files to pass in a Cucumber Feature Parameter. When writing Feature files there will be many moments where you will want to actually pass a value from your scenario and into your Java code step definitions. Passing a value from a Feature file and into a Java class can be achieved through Feature Parameters.
Cucumber Feature Parameter Video Tutorial
When trying to pass a value from your Feature file and into your Java class we can achieve this very easily by using regex in your Java code. This is a good trade off as this also great flexibility when trying to map one to one between Scenarios and step definitions.