public class IntToString implements Fun { @Override public String apply(Integer x) { return ""+x; // x.toString() klappt für x==null nicht! } }