Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public MoebiusStripCoordinate(int i, int j) {
- if (i < 0 || j < 0) {
- throw new IllegalArgumentException("Negativer Wert");
- } else {
- if (j > m) {
- throw new IllegalArgumentException("Negativer Wert");
- } else {
- setX(i);
- setY(j);
- }
- }
- }
- /* Besser lesbar, gleiche Funktion */
- public MoebiusStripCoordinate(int i, int j) {
- if (i < 0 || j < 0) {
- throw new IllegalArgumentException("Negativer Wert");
- }
- if (j > m) {
- throw new IllegalArgumentException("Negativer Wert");
- }
- setX(i);
- setY(j);
- }
Add Comment
Please, Sign In to add comment