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
48b1adb4
Verified
Commit
48b1adb4
authored
Dec 14, 2020
by
Lukas Wiest
🚂
Browse files
initial commit
parents
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
48b1adb4
*.class
# IntelliJ
/.idea
/out
*.iml
src/de/hftstuttgart/ip2/Calculator.java
0 → 100644
View file @
48b1adb4
package
de.hftstuttgart.ip2
;
public
class
Calculator
{
public
double
add
(
double
a
,
double
b
)
{
return
a
+
b
;
}
public
double
sub
(
double
a
,
double
b
)
{
return
a
-
b
;
}
public
double
mult
(
double
a
,
double
b
)
{
return
a
*
b
;
}
public
double
div
(
double
a
,
double
b
)
{
return
a
*
b
;
}
public
double
sum
(
double
...
numbers
)
{
CalculatorHelper
calculatorHelper
=
new
CalculatorHelper
();
return
calculatorHelper
.
sum
(
numbers
);
}
}
src/de/hftstuttgart/ip2/CalculatorHelper.java
0 → 100644
View file @
48b1adb4
package
de.hftstuttgart.ip2
;
import
java.util.Arrays
;
public
class
CalculatorHelper
{
public
double
sum
(
double
...
numbers
)
{
return
Arrays
.
stream
(
numbers
).
sum
();
}
}
src/de/hftstuttgart/ip2/NotCompilable.java
0 → 100644
View file @
48b1adb4
package
de.hftstuttgart.ip2
;
public
class
NotCompilable
{
int
a
=
5
}
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