From b03c3a74abdfbeeee6601645f9325e9f36406d37 Mon Sep 17 00:00:00 2001 From: sdash543 <156191116+sdash543@users.noreply.github.com> Date: Thu, 11 Jan 2024 01:49:10 +0530 Subject: [PATCH 1/8] Rishav --- hello.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/hello.txt b/hello.txt index 6b480b0..75bfef7 100644 --- a/hello.txt +++ b/hello.txt @@ -1,4 +1,5 @@ Sandeep +Rishav Ch-sriram 11 2122 From 0dab193c79286ba62d22378d653f8be10efb04d1 Mon Sep 17 00:00:00 2001 From: sdash543 <156191116+sdash543@users.noreply.github.com> Date: Sun, 21 Jan 2024 18:50:31 +0530 Subject: [PATCH 2/8] new msg --- h1.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/h1.txt b/h1.txt index b9c0d05..1b84a98 100644 --- a/h1.txt +++ b/h1.txt @@ -1,3 +1,4 @@ + welcome to saumya 234e32 243 4 From 3c55ef5ea1065411121dc479829956d442299e20 Mon Sep 17 00:00:00 2001 From: 523567 Date: Mon, 30 Jun 2025 17:31:55 +0530 Subject: [PATCH 3/8] newProject --- .gitignore | 29 +++++++++++++++++++++++++++++ .idea/.gitignore | 3 +++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ src/Main.java | 15 +++++++++++++++ src/Operation/Add | 1 + src/Operation/Add.java | 4 ++++ src/Operation/MultiPlication.java | 4 ++++ src/Operation/Multiply | 2 ++ src/Operation/Subtract | 1 + src/Operation/Subtract.java | 4 ++++ untitled.iml | 11 +++++++++++ 13 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 src/Main.java create mode 100644 src/Operation/Add create mode 100644 src/Operation/Add.java create mode 100644 src/Operation/MultiPlication.java create mode 100644 src/Operation/Multiply create mode 100644 src/Operation/Subtract create mode 100644 src/Operation/Subtract.java create mode 100644 untitled.iml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f68d109 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..31e1ebc --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3007dae --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Main.java b/src/Main.java new file mode 100644 index 0000000..930198c --- /dev/null +++ b/src/Main.java @@ -0,0 +1,15 @@ +//TIP To Run code, press or +// click the icon in the gutter. +public class Main { + public static void main(String[] args) { + //TIP Press with your caret at the highlighted text + // to see how IntelliJ IDEA suggests fixing it. + System.out.printf("Hello and welcome!"); + + for (int i = 1; i <= 5; i++) { + //TIP Press to start debugging your code. We have set one breakpoint + // for you, but you can always add more by pressing . + System.out.println("i = " + i); + } + } +} \ No newline at end of file diff --git a/src/Operation/Add b/src/Operation/Add new file mode 100644 index 0000000..2f68941 --- /dev/null +++ b/src/Operation/Add @@ -0,0 +1 @@ +Addition \ No newline at end of file diff --git a/src/Operation/Add.java b/src/Operation/Add.java new file mode 100644 index 0000000..e5ab553 --- /dev/null +++ b/src/Operation/Add.java @@ -0,0 +1,4 @@ +package Operation; + +public class Add { +} diff --git a/src/Operation/MultiPlication.java b/src/Operation/MultiPlication.java new file mode 100644 index 0000000..377736c --- /dev/null +++ b/src/Operation/MultiPlication.java @@ -0,0 +1,4 @@ +package Operation; + +public class MultiPlication { +} diff --git a/src/Operation/Multiply b/src/Operation/Multiply new file mode 100644 index 0000000..696c1ca --- /dev/null +++ b/src/Operation/Multiply @@ -0,0 +1,2 @@ +Multiply +division diff --git a/src/Operation/Subtract b/src/Operation/Subtract new file mode 100644 index 0000000..7156804 --- /dev/null +++ b/src/Operation/Subtract @@ -0,0 +1 @@ +Subtraction \ No newline at end of file diff --git a/src/Operation/Subtract.java b/src/Operation/Subtract.java new file mode 100644 index 0000000..b533c0b --- /dev/null +++ b/src/Operation/Subtract.java @@ -0,0 +1,4 @@ +package Operation; + +public class Subtract { +} diff --git a/untitled.iml b/untitled.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/untitled.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file From 7ac8a2349db16b82065b270529a3fbd8c87e6c4c Mon Sep 17 00:00:00 2001 From: 523567 Date: Mon, 30 Jun 2025 18:11:01 +0530 Subject: [PATCH 4/8] Merge remote changes --- src/Operation/Add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Operation/Add b/src/Operation/Add index 2f68941..ff948ee 100644 --- a/src/Operation/Add +++ b/src/Operation/Add @@ -1 +1,2 @@ -Addition \ No newline at end of file +Addition +multiply \ No newline at end of file From c9373cfe1d09a0089484ab2b5e64a162aa726549 Mon Sep 17 00:00:00 2001 From: 523567 Date: Tue, 1 Jul 2025 00:56:58 +0530 Subject: [PATCH 5/8] new --- src/Operation/Add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Operation/Add b/src/Operation/Add index ff948ee..d89ee9b 100644 --- a/src/Operation/Add +++ b/src/Operation/Add @@ -1,2 +1,3 @@ Addition -multiply \ No newline at end of file +multiply +devision \ No newline at end of file From df2d95df641938362890cee371564a14b84c0807 Mon Sep 17 00:00:00 2001 From: 523567 Date: Mon, 30 Jun 2025 20:39:09 +0530 Subject: [PATCH 6/8] newly added branch --- src/Operation/Add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Operation/Add b/src/Operation/Add index d89ee9b..c2cb152 100644 --- a/src/Operation/Add +++ b/src/Operation/Add @@ -1,3 +1,4 @@ Addition multiply -devision \ No newline at end of file +devision +newly added branch \ No newline at end of file From 1ec0685dd2eff347dae45a0f859ca40d6e57eeac Mon Sep 17 00:00:00 2001 From: 523567 Date: Tue, 1 Jul 2025 00:57:52 +0530 Subject: [PATCH 7/8] feat2 --- src/Operation/Add | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Operation/Add b/src/Operation/Add index c2cb152..bec8a38 100644 --- a/src/Operation/Add +++ b/src/Operation/Add @@ -1,4 +1,5 @@ Addition multiply devision -newly added branch \ No newline at end of file +newly added branch +feat2 \ No newline at end of file From 5e844b71f741137a97ceb2afe603c20add4b9bc3 Mon Sep 17 00:00:00 2001 From: 523567 Date: Wed, 2 Jul 2025 17:03:56 +0530 Subject: [PATCH 8/8] java 8 --- src/Main.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Main.java b/src/Main.java index 930198c..69144b8 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,15 +1,17 @@ +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.Set; +import java.util.stream.Collectors; + //TIP To Run code, press or // click the icon in the gutter. public class Main { public static void main(String[] args) { - //TIP Press with your caret at the highlighted text - // to see how IntelliJ IDEA suggests fixing it. - System.out.printf("Hello and welcome!"); + //Remove all duplcate words from String + String s= "ABC DE ABC"; + + Set map= Arrays.stream(s.split(" ")).collect(Collectors.toCollection(LinkedHashSet::new)); + System.out.println(map); - for (int i = 1; i <= 5; i++) { - //TIP Press to start debugging your code. We have set one breakpoint - // for you, but you can always add more by pressing . - System.out.println("i = " + i); - } } } \ No newline at end of file