mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
16 lines
333 B
Java
16 lines
333 B
Java
import java.util.*;
|
|
|
|
class Test {
|
|
static class Pair<A, B> {
|
|
Pair(A a, B b) {
|
|
}
|
|
|
|
static <A, B> Pair<A, B> create(A a, B b) {
|
|
return new Pair<A, B>(a, b);
|
|
}
|
|
}
|
|
|
|
public static void getWordsWithOffset(String s, int startInd, final List<Pair<String, Integer>> res) {
|
|
res.add(Pair.create(s, startInd));
|
|
}
|
|
} |