a la:
public class Slipsize_too_small_Exception{
public void pruefen(int einstellungsdatum, int pruefdatum) throws IllegalArgumentException{
if ((einstellungsdatum < pruefdatum) && (einstellungsdatum < 1900 || pruefdatum < 1900)) {
System.out.println("Pruefdatum darf nicht kleiner sein als das Einstellungsdatum oder eines der beiden muss groesser 1900 sein");
throw new IllegalArgumentException("Datum zu klein.....");
} else {
System.out.println("well done");
}
}
}
[/code]