Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Para<A extends Printable, B extends Printable> implements Printable {
- private A first;
- private B second;
- public Printable getFirst() {
- return first;
- }
- public Printable getSecond() {
- return second;
- }
- public Para(A first, B second) {
- this.first = first;
- this.second = second;
- }
- public void print() {
- System.out.println("I'm a pair");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment