diff --git a/lab3/OperationsStrings/.idea/.gitignore b/lab3/OperationsStrings/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/lab3/OperationsStrings/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/lab3/OperationsStrings/.idea/.name b/lab3/OperationsStrings/.idea/.name deleted file mode 100644 index 002da1d..0000000 --- a/lab3/OperationsStrings/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -Main.java \ No newline at end of file diff --git a/lab3/OperationsStrings/.idea/misc.xml b/lab3/OperationsStrings/.idea/misc.xml deleted file mode 100644 index 7464918..0000000 --- a/lab3/OperationsStrings/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/lab3/OperationsStrings/.idea/modules.xml b/lab3/OperationsStrings/.idea/modules.xml deleted file mode 100644 index 32e9116..0000000 --- a/lab3/OperationsStrings/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/lab3/OperationsStrings/OperationsStrings.iml b/lab3/OperationsStrings/OperationsStrings.iml deleted file mode 100644 index c90834f..0000000 --- a/lab3/OperationsStrings/OperationsStrings.iml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/lab3/OperationsStrings/out/production/OperationsStrings/Main.class b/lab3/OperationsStrings/out/production/OperationsStrings/Main.class deleted file mode 100644 index 97fa6cc..0000000 Binary files a/lab3/OperationsStrings/out/production/OperationsStrings/Main.class and /dev/null differ diff --git a/lab3/OperationsStrings/src/Main.java b/lab3/OperationsStrings/src/Main.java deleted file mode 100644 index e4e71f0..0000000 --- a/lab3/OperationsStrings/src/Main.java +++ /dev/null @@ -1,25 +0,0 @@ -import java.util.HashSet; - -public class Main { - - public static void main(String[] args) { - String inputText = "Who are you? What is your name? Where are you from?"; - int targetLength = 3; - - try { - HashSet uniqueWords = new HashSet(); - String[] sentences = inputText.split("[?]"); - for (String sentence : sentences) { - String[] words = sentence.trim().split("\\s+"); - for (String word : words) { - if (word.length() == targetLength) { - uniqueWords.add(word.toLowerCase()); - } - } - } - System.out.println("Unique words of length " + targetLength + " in the input text are: " + uniqueWords); - } catch (Exception e) { - System.out.println("An error occurred: " + e.getMessage()); - } - } -} diff --git a/lab3/lab3.pdf b/lab3/lab3.pdf deleted file mode 100644 index 12fb76b..0000000 Binary files a/lab3/lab3.pdf and /dev/null differ