Bidi createLineBidi() method in Java with Examples
The createLineBidi() method of java.text.Bidi class is used to create a new bidi object having same base direction and representing every property of current bidi within the range.
public Bidi createLineBidi(int lineStart, int lineLimit)
Parameter: This method takes following argument as parameter
- lineStart: it is the start point of this new bidi
- lineLimit: it is the end point for this new bidi
Return Value: This method return a new Bidi object
Below are the examples to illustrate the createLineBidi() method:
New Bidi Length : 5 number of levels : 2 Base Level : 1
New Bidi Length : 2 number of levels : 1 Base Level : 2
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.