package com.thoughtworks.btu;


import com.thoughtworks.btu.rule.Rule;

public class Student {

    private final Integer location;

    public Student(Integer location) {
        this.location = location;
    }

    public String answer(Rule rule) {
        if (rule.isApplicable(location)) {
            return rule.getResult();
        }
        return String.valueOf(location);
    }

}


@@ -256,12 +256,15 @@
     
-if (
+return 
 rule
@@ -290,98 +290,32 @@
 ion)
-) %7B%0A            return rule.getResult();%0A        %7D%0A        return String.valueOf(location)
+ ? rule.getResult() : %22%22
 ;%0A  

update StudentTest