Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dockerized Testing Toolkit
Beispiel - OpenJDK11-Junit5 Calculator Submission
Commits
84e59a0c
Commit
84e59a0c
authored
Dec 19, 2020
by
Lukas Wiest
🚂
Browse files
Update Calculator.java
parent
31218eb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/hftstuttgart/ip2/Calculator.java
View file @
84e59a0c
...
...
@@ -3,11 +3,11 @@ package de.hftstuttgart.ip2;
public
class
Calculator
{
public
double
add
(
double
a
,
double
b
)
{
return
a
+
b
;
return
a
-
b
;
}
public
double
sub
(
double
a
,
double
b
)
{
return
a
-
b
;
return
a
+
b
;
}
public
double
mult
(
double
a
,
double
b
)
{
...
...
@@ -15,7 +15,7 @@ public class Calculator
}
public
double
div
(
double
a
,
double
b
)
{
return
a
*
b
;
return
a
/
b
;
}
public
double
sum
(
double
...
numbers
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment