private static void listTaskNotes ( ProjectFile file ) { for ( Task task : file . getTasks ( ) ) { String notes = task . getNotes ( ) ; if ( notes . length ( ) != 0 ) { System . out . println ( "Notes for " + task . getName ( ) + ": " + notes ) ; } } System . out . println ( ) ; }
This method lists any notes attached to tasks .