Bidi getRunLevel() method in Java with Examples
The getRunLevel() method of java.text.Bidi class used to provide the level for the nth run of this line of text if there is only one running state than It will provide base level for that state .
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
public int getRunLevel(int run)
Parameters: This method accepts the index of the logical run for which the level of the run is to be retrieved.
Return Value: This method provides the level for the particular run in the line of text.
Below are the examples to illustrate the getRunLevel() method:
level of first run is : 2
level of first run is : 0