From 8205bdb79cd0a622d5e5f511e7457d4155e73de5 Mon Sep 17 00:00:00 2001 From: 02ARTHI Date: Tue, 6 Jan 2026 14:22:27 +0530 Subject: [PATCH 1/3] modified --- BaseTestNg.java | 2 ++ OccuranceOfCharacter.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/BaseTestNg.java b/BaseTestNg.java index 19cb271..7e632cc 100644 --- a/BaseTestNg.java +++ b/BaseTestNg.java @@ -5,10 +5,12 @@ public class BaseTestNg { + long startTime; long endTime; int letter, space, num, specialChar; + @BeforeMethod public void startTimer() { letter = 0; diff --git a/OccuranceOfCharacter.java b/OccuranceOfCharacter.java index d367433..f7ce1f9 100644 --- a/OccuranceOfCharacter.java +++ b/OccuranceOfCharacter.java @@ -9,6 +9,7 @@ public class OccuranceOfCharacter extends BaseTestNg{ String str = "welcome to automation"; int count =0; + @Test(priority=1) public void main() { char[] char_array =str.toCharArray(); @@ -16,6 +17,7 @@ public void main() { for (char ch : char_array) { if(charCounter.containsKey(ch)){ charCounter.put(ch, charCounter.get(ch)+1); + int add=0; } else{ charCounter.put(ch, 1); From 74d131556e5076f955967bcbd25ef7f578202e4a Mon Sep 17 00:00:00 2001 From: 02ARTHI Date: Tue, 6 Jan 2026 14:39:56 +0530 Subject: [PATCH 2/3] push changed --- Intersection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Intersection.java b/Intersection.java index 9378a14..ad00669 100644 --- a/Intersection.java +++ b/Intersection.java @@ -11,7 +11,7 @@ public class Intersection { int[] arr1 = {3,2,11,4,6,7}; int[] arr2 = {1,2,8,4,9,7}; - +int add=0; @Test(priority=1) public void intersectionBetweenArrays() throws IOException { From 50ef9c6966ec6d39ed5dd31d94e9f8ec01a52659 Mon Sep 17 00:00:00 2001 From: arthi <[arthi@email.com]> Date: Tue, 6 Jan 2026 14:47:47 +0530 Subject: [PATCH 3/3] changed --- Intersection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Intersection.java b/Intersection.java index ad00669..9b93c74 100644 --- a/Intersection.java +++ b/Intersection.java @@ -13,6 +13,7 @@ public class Intersection { int[] arr2 = {1,2,8,4,9,7}; int add=0; + @Test(priority=1) public void intersectionBetweenArrays() throws IOException {