void bedeutet ja das es nichts zurückgibt oder? Also hier sind die Methode die hab ich kopiert es ist eine Hausaufgabe, wo ich die Methode kopieren und einfügen soll und ergänzen soll und unten bei System.out.println wurde auch "irgendwas" hingeschrieben also warscheinlich der Methoden Aufruf aber void bedeutet ja es gibt nichts zurück also darf man nichts in die Methode schreiben oder?
Ich würde es nämlich so machen: eine while schleife die kuckt ob der Nenner mit dem Zähler dividierter ist falls nicht dann umgekehrt kucken. Falls das nicht geht dann Zähler und Nenner geteilt durch 3, falls das nicht geht dann Zähler und Nenner geteilt durch 2. und joa dann müsste der Bruch endgültig gekürzt sein aber das void verwirrt mich! Und ich darf nicht ändern!
Mit freundlichen Grüßen