Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.BigDecimal;
- public class Pair {
- private BigDecimal x, y;
- public BigDecimal getFst() { return x; }
- public BigDecimal getSnd() { return y; }
- public void setFst(BigDecimal a) { x = a; }
- public void setSnd(BigDecimal b) { y = b; }
- public String toString() { return (x.toString() + ", " + y.toString()); }
- Pair(BigDecimal a, BigDecimal b) { x = a; y = b; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement