Originally posted by Nath Maniedeo: how do we check the console size for example...are they all the same? My idea is to do a bunch of if loops to check the size of the name.
Console sizes are not all the same. However, you should write your code so that the names will fit on an 80-character-size console (even if your console isn't 80 characters wide).
You can get the length of the name with one method call ... name.length()
Now you know the length of the name, and you know the length of the line in the console ... do a simple calculation to see how many names will fit on a line.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt