Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f8ccb17

Browse files
Add multiply simple class
1 parent 20b0305 commit f8ccb17

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
| kyu | Codewars Kate | My Solutions |
88
| --- | --- | --- |
99
| 3 | [Prime Streaming (PG-13)](https://www.codewars.com/kata/5519a584a73e70fa570005f5) | [Pg13PrimeStreaming.java](https://github.com/adrianblade/codewars_java_solution/blob/master/src/main/java/kyu3/prime_streaming_pg_13/Pg13PrimeStreaming.java) |
10+
| 8 | [Multiply](https://www.codewars.com/kata/50654ddff44f800200000004) | [Multiply.java](https://github.com/adrianblade/codewars_java_solution/blob/master/src/main/java/kyu3/prime_streaming_pg_13/Pg13PrimeStreaming.java) |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package kyu8.multiply;
2+
3+
public class Multiply {
4+
public static Double multiply(Double a, Double b) {
5+
return a * b;
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Multiply
2+
3+
The code does not execute properly. Try to figure out why.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package kyu8.multiply;
2+
3+
import org.junit.Test;
4+
5+
import static org.hamcrest.core.Is.is;
6+
import static org.junit.Assert.*;
7+
8+
public class MultiplyTest {
9+
@Test
10+
public void testSomething() {
11+
Double multiply = Multiply.multiply(25d, 10d);
12+
assertThat(multiply, is(250d));
13+
}
14+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /