Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

similar thing as pair in c++ in java

class Pairs {
    static <L,R> Pair<L,R> makePair(final L l, final R r){
        return new Pair<L,R>(){
            public L getL() { return l; }
            public R getR() { return r; }   
        };
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #similar #pair #java
ADD COMMENT
Topic
Name
8+8 =