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