mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
13 lines
330 B
Java
13 lines
330 B
Java
import java.util.*;
|
|
|
|
class AAA {
|
|
boolean addIntoTwoSets(Set<String> set1, Set<String> set2, String value) {
|
|
return set1.add(value) && set2.add(value);
|
|
}
|
|
|
|
void usage() {
|
|
Set<String> s1 = new HashSet<>();
|
|
Set<String> s2 = new HashSet<>();
|
|
<caret>addIntoTwoSets(s1, s2, "foo");
|
|
}
|
|
} |