This commit is contained in:
nora 2020-11-18 16:10:46 +01:00
parent 1b2781b527
commit e75e146d67
4 changed files with 3 additions and 8 deletions

View file

@ -45,5 +45,4 @@ public class DecimalNumber {
public double getValue(){
return Double.parseDouble(integerPart + "." + decimalPart);
}
}

View file

@ -43,7 +43,6 @@ public class SignedInteger {
this.n = Math.abs(this.n);
}
}
}

View file

@ -68,7 +68,4 @@ public class StringOfChars {
string = newString;
}
}
}

View file

@ -7,9 +7,9 @@ public class TestClass {
DecimalNumber dd = new DecimalNumber(2.4);
try{
DecimalNumber d = new DecimalNumber("schaffen");
DecimalNumber d = new DecimalNumber("hurensohn");
} catch (ValueShouldProbablyActuallyBeANumberAndNotSomeWeirdGibberishDumbProgrammerException e) {
e.printStackTrace();
}
}
}
}