Skip to content

Commit 4def651

Browse files
committed
Math.java
1 parent 8e95421 commit 4def651

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

simple-junit/Math.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.hmkcode.junit;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class Math
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
14+
public double sum(double x, double y){
15+
return x+y;
16+
}
17+
public double multiply(double x, double y){
18+
return x*y;
19+
}
20+
public double divide(double x, double y){
21+
return x/y;
22+
}
23+
public double subtract(double x, double y){
24+
return x - y;
25+
}
26+
27+
28+
29+
}

0 commit comments

Comments
 (0)