Have a program which I'd like output the values from an Array. Using tab (\t) or formatting e.g (%40s) doesnt account for strings of different lengths.
Current Code Below is Fine for the Headings.
System.out.format("%s%40s%32s%32s%32s%32s\n","ID","NAME","SURNAME","POSITION","CONTACT","EMAIL");
However, Not for the values of different Lenths
I'd Like something like this below ***
Name Surname ID Position
Joanne Bassy 0000001 Manager
Mannnny papsasjkasjnnxz 0000002 Boss
I Get this though ***
Name Surname ID Position
Joanne Bassy 0000001 Manager
Mannnny papsasjkasjnnxz 0000002 Boss