I am facing a problem aligning the text in proper format
EX: say I am to get printout in the following way
Name Phone No.
Adithya 99999999999
Ravi 99999999999
Teja 99999999999
:
:
but as the length of the String Adithya
is not equal to length of Ravi
we cannot give specific spacing such as
String s = Name+ " " + Phone + "\n";
here if I give so I'll get in the following way
Name Ph
Adithya 9999999
Ravi 9999999
Tej 9999999
:
:
it will display in this way. How can I solve this?