mercredi 20 novembre 2019

Using decorator pattern to format table output

I have one specific problem. I have to make data output in console (as table) using Decorator pattern. I searched all over Google about decorator pattern, but I didn't find any similar example of using decorator pattern, so I decided to ask here.

So, I have to print data to console as table in which textual data is left aligned, and numbers are right aligned. I really don't have any idea how to do this by using decorator pattern, so I would be grateful if you could help. I have to do this in Java (in case that technology affect anything).

Thanks

Aucun commentaire:

Enregistrer un commentaire