mirror of
https://github.com/Noratrieb/UselessClasses.git
synced 2026-01-14 16:45:09 +01:00
idk
This commit is contained in:
parent
1b2781b527
commit
e75e146d67
4 changed files with 3 additions and 8 deletions
|
|
@ -45,5 +45,4 @@ public class DecimalNumber {
|
||||||
public double getValue(){
|
public double getValue(){
|
||||||
return Double.parseDouble(integerPart + "." + decimalPart);
|
return Double.parseDouble(integerPart + "." + decimalPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ public class SignedInteger {
|
||||||
this.n = Math.abs(this.n);
|
this.n = Math.abs(this.n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,4 @@ public class StringOfChars {
|
||||||
|
|
||||||
string = newString;
|
string = newString;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -7,9 +7,9 @@ public class TestClass {
|
||||||
|
|
||||||
DecimalNumber dd = new DecimalNumber(2.4);
|
DecimalNumber dd = new DecimalNumber(2.4);
|
||||||
try{
|
try{
|
||||||
DecimalNumber d = new DecimalNumber("schaffen");
|
DecimalNumber d = new DecimalNumber("hurensohn");
|
||||||
} catch (ValueShouldProbablyActuallyBeANumberAndNotSomeWeirdGibberishDumbProgrammerException e) {
|
} catch (ValueShouldProbablyActuallyBeANumberAndNotSomeWeirdGibberishDumbProgrammerException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue