This commit is contained in:
Yadunand Prem
2022-10-13 13:47:43 +08:00
parent 132080d451
commit e1320e2a52
3 changed files with 37 additions and 0 deletions

22
PE1/Pair.java Normal file
View File

@@ -0,0 +1,22 @@
public class Pair<T, S> {
private T fst;
private S snd;
public Pair(T fst, S snd) {
this.fst = fst;
this.snd = snd;
}
public T getFst() {
return this.fst;
}
public S getSnd() {
return this.snd;
}
@Override
public String toString() {
return this.fst + "; " + this.snd;
}
}