Skip to content

Commit

Permalink
bu task4
Browse files Browse the repository at this point in the history
  • Loading branch information
Javohir004 committed Apr 24, 2024
1 parent 50c3ae3 commit 8d1b140
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 28 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 modified out/production/B30_Javohir_Sharifjonov_2/Main.class
Binary file not shown.
42 changes: 41 additions & 1 deletion src/Main.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
import java.util.HashSet;
import java.util.Set;

public class Main {
public static void main(String[] args) {
System.out.println("Hello world !!!");
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);

}
}
27 changes: 0 additions & 27 deletions src/Text.txt

This file was deleted.

0 comments on commit 8d1b140

Please sign in to comment.