I have the below output from a loop in java, I would like to know as to how to set the gap between the columns so the output looks neat.
Name[Last,First]:Cruise, Tom Movie:MI Year:1990s
Name[Last,First]:Hanks, Tom Movie:Cast Away Year:2000s
I want the Movie and year to be aligned along the same line. I have used three methods getName() , getMovie, getYear() to obtain data.