public static void main ( final String [ ] args ) { String propertyFile = System . getProperty ( "file" ) ; if ( propertyFile == null ) { System . out . println ( "Property file not given, exiting." ) ; System . exit ( 0 ) ; } final Properties properties = new Properties ( ) ; try { properties . load ( new FileInputStream ( propertyFile ) ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException ie ) { ie . printStackTrace ( ) ; } recommend ( properties ) ; }
Main method for running a recommendation .