Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pair {
- int first;
- int second;
- Pair() {
- first = 0;
- second = 0;
- }
- Pair(int first) {
- this.first = first;
- }
- Pair(int first, int second) {
- this.first = first;
- this.second = second;
- }
- public void set_first(int first) {
- this.first = first;
- }
- public void set_second(int second) {
- this.second = second;
- }
- public int get_first() {
- return first;
- }
- public int get_second() {
- return second;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement