2023-03-08 13:59:40 +00:00
|
|
|
import java.util.Vector;
|
|
|
|
import java.lang.Boolean;
|
|
|
|
import java.lang.Object;
|
|
|
|
|
|
|
|
|
2024-03-14 12:50:56 +00:00
|
|
|
public class Pair<T, U> {
|
2024-03-11 15:16:10 +00:00
|
|
|
T x;
|
|
|
|
U y;
|
2023-03-08 13:59:40 +00:00
|
|
|
|
2024-03-14 12:50:56 +00:00
|
|
|
public fst() {
|
2024-03-11 15:16:10 +00:00
|
|
|
return x;
|
|
|
|
}
|
2023-03-08 13:59:40 +00:00
|
|
|
|
2024-03-14 12:50:56 +00:00
|
|
|
public snd() {
|
2024-03-11 15:16:10 +00:00
|
|
|
return y;
|
2023-03-08 13:59:40 +00:00
|
|
|
}
|
|
|
|
}
|