Skip to content

Commit

Permalink
add example for #4: Boxing Overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
amelentev committed Nov 17, 2012
1 parent 8f8f316 commit 93ff183
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/ValueOf.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import java.math.*;

public class ValueOf {
public static boolean test() {
BigInteger a = BigInteger.valueOf(123);
BigInteger b = 123;
return a.equals(b);
}
public static void main(String []args) {
System.out.println(test());
}
}

0 comments on commit 93ff183

Please sign in to comment.