The Expendables

for(Actor actor : hollywood.getActorsList()){
    if((actor.getAge() > 60 && actor.getSuccessRate() < 0.25) || actor.getSalary() <= 500 || actor.isStuntman()){
        movie.getActorsList().add(actor);
    }
}
movie.setHistory(null);
movie.setPlot(null);
movie.setDialogs(null);
movie.setSoundtrack(new File("C:UsersSlyMusicboom.wav"));
movie.setFrameTransitionEffect(new File("C:UsersSlyPicturesexplosion.gif"));
Vote up this code0
  • Edgar Eler

    The right code for last two lines is:

    movie.setSoundtrack(new File(“C:\Users\Sly\Music\boom.wav”));
    movie.setFrameTransitionEffect(new File(“C:\Users\Sly\Pictures\explosion.gif”));