Skip to content

Commit 93ff183

Browse files
committed
add example for #4: Boxing Overloading
1 parent 8f8f316 commit 93ff183

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/ValueOf.java

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java.math.*;
2+
3+
public class ValueOf {
4+
public static boolean test() {
5+
BigInteger a = BigInteger.valueOf(123);
6+
BigInteger b = 123;
7+
return a.equals(b);
8+
}
9+
public static void main(String []args) {
10+
System.out.println(test());
11+
}
12+
}

0 commit comments

Comments
 (0)