Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
examples
cota-submission-calc-jdk
Commits
84e59a0c
Commit
84e59a0c
authored
4 years ago
by
Lukas Wiest
Browse files
Options
Download
Email Patches
Plain Diff
Update Calculator.java
parent
31218eb1
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/de/hftstuttgart/ip2/Calculator.java
+3
-3
src/de/hftstuttgart/ip2/Calculator.java
with
3 additions
and
3 deletions
+3
-3
src/de/hftstuttgart/ip2/Calculator.java
+
3
-
3
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets