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);
  }

}

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() == 0) {
        return term.getText();
      }
    }
    return Integer.toString(n);
  }

}

Handle multiples of Fizz and Buzz
Handle multiples of Fizz and Buzz