Advertisement
Rinton

Untitled

Jan 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import java.util.*;
  2. public class Pair
  3. {
  4. private int Left,Right;
  5.  
  6. public Pair (int left,int right)
  7. {
  8. this.Left = Left;
  9. this.Right = Right;
  10. }
  11.  
  12. public int GetLeft ()
  13. {
  14. return this.Left;
  15. }
  16.  
  17. public int GetRight()
  18. {
  19. return this.Right;
  20. }
  21.  
  22.  
  23. public String toString()
  24. {
  25. return "Pair [Left=" + Left + ", Right=" + Right + "]";
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement