abdukodir

Untitled

Dec 16th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1.  
  2. import MailTask.BigNum;
  3.  
  4. import java.io.*;
  5. import java.util.*;
  6.  
  7. public class Main {
  8. public static void main (String[] args) throws IOException {
  9. BigNum b1 = new BigNum();
  10. BigNum b2 = new BigNum("110");
  11. BigNum b3 = new BigNum(b2);
  12. System.out.println("b1 := " + b1);
  13. System.out.println("b2 := " + b2);
  14. System.out.println("b3 := " + b3);
  15. System.out.println("b3.equals(b2) -> " + b3.equals(b2));
  16. System.out.println("b1.isZero() -> " + b1.isZero());
  17. System.out.println("b2.isZero() -> " + b2.isZero());
  18. System.out.println("b2.equals(b1) -> " + b2.equals(b1));
  19. }
  20. }
Add Comment
Please, Sign In to add comment