Bidi toString() method in Java with Examples
The toString() method of java.text.Bidi class is used to display this Bidi instance in string representation.
public String toString()
Parameter: This method accepts nothing as parameter.
Return Value: This method display internal state of bidi in string format.
Below are the examples to illustrate the toString() method:
status of bidi : sun.text.bidi.BidiBase[ dir: 0 baselevel: 0 length: 5 runs: [0 0 0 0 0] text: [0x47 0x65 0x65 0x6b 0x73]]
status of bidi : sun.text.bidi.BidiBase[ dir: 2 baselevel: 1 length: 3 runs: [2 2 2] text: [0x54 0x45 0x31]]
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.