In this example , we are going to explain how we
can make paragraph and how we can gives various alignment. To make a
paragraph we use Paragraph("Text") constructor . To gives
alignment we use setAlignment(int alignment).
We can set the aligment of a Paragraph with the method setAlignment(int alignment). The alignment can be one of the following values:
The code of the program is given below:
The output of the program is given below:
Recommend the tutorial