Skip to content

Instantly share code, notes, and snippets.

@SkyLightQP
Last active May 18, 2019 10:48
Show Gist options
  • Select an option

  • Save SkyLightQP/9b79f39b3d67ae2c1d1e669a5b08c1a8 to your computer and use it in GitHub Desktop.

Select an option

Save SkyLightQP/9b79f39b3d67ae2c1d1e669a5b08c1a8 to your computer and use it in GitHub Desktop.
public class Pair<F, S> {
private F first;
private S second;
public Pair(F first, S second) {
this.first = first;
this.second = second;
}
public F getFirst() {
return first;
}
public S getSecond() {
return seconnd;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment