public class Seven{
private Pitt brad;
private Spacey kevin;
private ArrayList<String> sins = new ArrayList<String>{"GREED","GLUTTONY","SLOTH","LUST","PRIDE","ENVY","WRATH"};
public void movie(){
String sin;
boolean isToMuch= false;
for(sin : sins) {
if(sin.equals("WRATH"){
kevin.kill(brad.getWife());
isToMuch= true;
else{
kevin.kill();
}
if(isToMuch) brad.kill(kevin);
}
}
}
private Pitt brad;
private Spacey kevin;
private ArrayList<String> sins = new ArrayList<String>{"GREED","GLUTTONY","SLOTH","LUST","PRIDE","ENVY","WRATH"};
public void movie(){
String sin;
boolean isToMuch= false;
for(sin : sins) {
if(sin.equals("WRATH"){
kevin.kill(brad.getWife());
isToMuch= true;
else{
kevin.kill();
}
if(isToMuch) brad.kill(kevin);
}
}
}