I am having issues trying to display the data in the console.. i just want it to show organized or close to organized. This is how i am pulling the data
// Loop through the result set
while( rs.next() )
{
System.out.print( rs.getInt(1) ) ;
System.out.print(" | ");
System.out.print( rs.getString(2) );
System.out.print(" | ");
System.out.print( rs.getString(3) );
}
but this data shows all over the place like this..
123 Blaah St | Apt 2A | FL
Fort | null | FL
5601 N Dixie Hwy | null | FL
Is there a good advise to format this better in java?
Take a look at
System.out.format.Example: