Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	out/production/B30_Javohir_Sharifjonov_2/Main.class
#	src/Main.java
  • Loading branch information
Javohir004 committed Apr 26, 2024
2 parents 6c7ed92 + 8d1b140 commit 50542e5
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 0 deletions.
124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
41 changes: 41 additions & 0 deletions src/Main.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

import java.util.HashSet;
import java.util.Set;

public class Main {
public static void main(String[] args) {

Expand All @@ -12,5 +15,43 @@ public static void main(String[] args) {
test.remove(1);
System.out.println(test.get(1));

Set<String> test1 = new HashSet<>();
test1.add("olma");
test1.add("behi");
test1.add("nok");
test1.add("tuxum");
test1.add("ayiq");

Set<String> test2 = new HashSet<>();
test2.add("olma");
test2.add("shaftoli");
test2.add("nok");
test2.add("daraxt");
test2.add("bo'ri");

Set<String> test3 = new HashSet<>();
test3.add("olma");
test3.add("shaftoli");
test3.add("nok");
test3.add("daraxt");



Set<String> last = new HashSet<>();

for (String s : test1) {
if( test2.contains(s)){
last.add(s);
}
}

for (String s3 : test3) {
if( !last.contains(s3) ){
last.add(s3);
}
}

System.out.println(last);

}
}

0 comments on commit 50542e5

Please sign in to comment.