similar thing as pair in c 2b 2b in java

Solutions on MaxInterview for similar thing as pair in c 2b 2b in java by the best coders in the world

showing results for - "similar thing as pair in c 2b 2b in java"
Kolby
06 Aug 2016
1class Pairs {
2    static <L,R> Pair<L,R> makePair(final L l, final R r){
3        return new Pair<L,R>(){
4            public L getL() { return l; }
5            public R getR() { return r; }   
6        };
7    }
8}