Skip to content

Commit c4811dc

Browse files
authored
Update MinValue.java
1 parent aaa2b26 commit c4811dc

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/main/java/com/thealgorithms/maths/MinValue.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33
import java.util.Random;
44

55
public class MinValue {
6-
7-
/**
8-
* Driver Code
9-
*/
10-
public static void main(String[] args) {
11-
Random rand = new Random();
12-
13-
/* test 100 times using rand numbers */
14-
for (int i = 1; i <= 100; ++i) {
15-
/* generate number from -50 to 49 */
16-
int a = rand.nextInt(100) - 50;
17-
int b = rand.nextInt(100) - 50;
18-
assert min(a, b) == Math.min(a, b);
19-
}
20-
}
21-
226
/**
237
* Returns the smaller of two {@code int} values. That is, the result the
248
* argument closer to the value of {@link Integer#MIN_VALUE}. If the

0 commit comments

Comments
 (0)