How to display output in a tabular form in java and python? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

How to display output in a tabular form in java and python?

1st Aug 2019, 1:04 AM
ᎯᏰᏰᎯ__ᏥᎿᏩ➰
ᎯᏰᏰᎯ__ᏥᎿᏩ➰ - avatar
2 Réponses
+ 2
you con use formatter in java like: System.out.format("%s%10d%16s", string1, int1, string2); this pads int1, and string2 to 10, and 16 characters, respectively.
2nd Aug 2019, 9:09 PM
shirin ghoddousi
shirin ghoddousi - avatar
+ 2
There's no escaping it, buddy. %n_
18th Nov 2019, 10:05 AM
Detective_Khalifah
Detective_Khalifah - avatar