public static void printInfo ( String title , String infoString ) { if ( infoString == null ) { System . out . println ( "Null info string" ) ; return ; } String [ ] outerParts = infoString . split ( ";" ) ; System . out . println ( title ) ; for ( String s : outerParts ) { String [ ] innerParts = s . split ( ":" ) ; for ( String parts : innerParts ) { System . out . println ( "\t" + parts ) ; } System . out . println ( ) ; } }
Prints an Info message with a title to System . out