package remonsinnema.blog.fizzbuzz;

import java.util.Arrays;
import java.util.Collection;


public class FizzBuzz {

  private final Collection<Term> terms = Arrays.asList(new Term(3, "Fizz"), new Term(5, "Buzz"));

  public String get(int n) {
    for (Term term : terms) {
      if (n == term.getValue()) {
        return term.getText();
      }
    }
    return Integer.toString(n);
  }

}

@@ -285,10 +285,9 @@
  (n 
-==
+%25
  ter
@@ -298,16 +298,21 @@
 tValue()
+ == 0
 ) %7B%0A    

Handle multiples of Fizz and Buzz