class Anagrams {

  public List<String> get(String input) {
    List<String> result = null;
    if (input == null) {
      throw new IllegalArgumentException("You can't pass a null String as input.");
    } else if (input.isEmpty()) {
      result = new LinkedList<String>();
    } else {
      result = getAnagramsInner("", input);
    }
    return result;
  }

}