/Users/andrea/_magisterarbeit/korpus/clean/trainkorpus/32/file6.html NN ----------------------------------------- : DEVELOPER NN . SENT Optimization NP Building NP Faster JJR Java NP By IN Harshad NP Oak NP Code NP Listing VVG 1 CD . SENT OptimizationTrial NP . SENT java NP before IN first JJ CodeCoach NP run NN package NN oramag NN . SENT client NN . SENT import NN java NP . SENT io NP . SENT IOException NN . SENT import NN java NP . SENT text NN . SENT SimpleDateFormat NP . SENT import NN java NP . SENT util NP . SENT ArrayList NP . SENT import NN java NP . SENT util NP . SENT Date NN . SENT public JJ class NN OptimizationTrial JJ public JJ OptimizationTrial JJ static JJ int NP count NN 99999 CD . SENT public JJ static JJ void NN main JJ String NP args NNS throws VVZ IOException NN todaysDay NN . SENT demoArrayListOptimized JJ count NN . SENT demoArrayList NN count NN . SENT public JJ static JJ void NN todaysDay NN throws VVZ IOException NN Object NN today NN fetchTodaysDay NN . SENT if IN today NN instanceof NN String NP System NP . SENT out RB . SENT println NN The DT object NN today NN is VBZ always RB a DT String NP . SENT Check VV unnecessary JJ . SENT System NN . SENT out RB . SENT println NN Today NN is VBZ today NN . SENT public JJ static JJ Object NN fetchTodaysDay NN SimpleDateFormat NP sfInput NN new JJ SimpleDateFormat NP EEEEEEEEE NP . SENT return NN sfInput NN . SENT format NN new JJ Date NN . SENT public JJ static JJ void NN demoArrayList NN int NP number NN System NP . SENT out RB . SENT println NP Unoptimized JJ Run NN . SENT ArrayList NP ar NP new JJ ArrayList NN . SENT NOTE NN . SENT Change NN number NN to TO zero VV to TO demonstrate VV codecoach NN and CC audit NN features NNS for IN int NP i NP 0 CD . SENT i NP 0 CD . SENT i NP ar NP . SENT add VV new JJ Integer NN i NP . SENT public JJ static JJ void NN demoArrayListOptimized VVN int NP numberOpt NN System NP . SENT out RB . SENT println NNS Optimized VVD Run NN . SENT ArrayList NP ar NP new JJ ArrayList NN numberOpt NN . SENT for IN int NP i NP 0 CD . SENT i NP numberOpt NN . SENT i NP ar NP . SENT add VV new JJ Integer NN i NP . SENT Code NP Listing NN 2 CD . SENT OptimizationTrial NP . SENT java NP after IN CodeCoach NP optimization NN package NN oramag NN . SENT client NN . SENT import NN java NP . SENT io NP . SENT IOException NN . SENT import NN java NP . SENT text NN . SENT SimpleDateFormat NP . SENT import NN java NP . SENT util NP . SENT ArrayList NP . SENT import NN java NP . SENT util NP . SENT Date NN . SENT public JJ final JJ class NN OptimizationTrial JJ public JJ OptimizationTrial JJ private JJ static JJ final JJ int NP count NN 99999 CD . SENT public JJ static JJ void NN main JJ String NP args NNS throws VVZ IOException NN todaysDay NN . SENT demoArrayListOptimized JJ count NN . SENT demoArrayList NN count NN . SENT private JJ static JJ void NN todaysDay NN throws VVZ IOException NN Object NN today NN fetchTodaysDay NN . SENT if IN today NN instanceof NN String NP System NP . SENT out RB . SENT println NN The DT object NN today NN is VBZ always RB a DT String NP . SENT Check VV unnecessary JJ . SENT System NN . SENT out RB . SENT println NN Today NN is VBZ today NN . SENT private JJ static JJ Object NN fetchTodaysDay NN SimpleDateFormat NP sfInput NN new JJ SimpleDateFormat NP EEEEEEEEE NP . SENT return NN sfInput NN . SENT format NN new JJ Date NN . SENT private JJ static JJ void NN demoArrayList NN int NP number NN System NP . SENT out RB . SENT println NP Unoptimized JJ Run NN . SENT ArrayList NP ar NP new JJ ArrayList NN . SENT NOTE NN . SENT Change NN number NN to TO zero VV to TO demonstrate VV codecoach NN and CC audit NN features NNS for IN int NP i NP 0 CD . SENT i NP number NN . SENT i NP ar NP . SENT add VV new JJ Integer NN i NP . SENT private JJ static JJ void NN demoArrayListOptimized VVN int NP numberOpt NN System NP . SENT out RB . SENT println NNS Optimized VVD Run NN . SENT ArrayList NP ar NP new JJ ArrayList NN numberOpt NN . SENT for IN int NP i NP 0 CD . SENT i NP numberOpt NN . SENT i NP ar NP . SENT add VV new JJ Integer NN i NP . SENT