1 // Formatter.java
2 package format;
3
4 /** 5 * Formatter ist eine Formatierurngsschnittstelle für ganze Zahlen. 6 * Beispielprogramm zur Programmiertechnik 1, Teil 5. 7 * @author H.Drachenfels 8 * @version 5.8.2016 9 */
10 public interface Formatter {
11 /** 12 * format liefert eine String-Darstellung für eine ganze Zahlen. 13 * @param n eine ganze Zahl. 14 * @return die String-Darstellung von n. 15 */
16 String format(int n);
17 }
18