(..) Operator
The (..) operator is the simplest way to create a range. It creates a range from the given start and end values. It is the operator form of rangeTo() function.
Here, we will demonstrate the example of creating a character range using the (..) operator.
Example 1:
Output:
Example 2:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer