From 72f92770bade2ad49ae3d3573b7bb1fcde8d4de3 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 24 Apr 2023 15:53:17 +0200 Subject: [PATCH] more simple stuff --- .idea/modules.xml | 2 + .idea/workspace.xml | 98 +++++++++++++++++------- PassValid/.gitignore | 29 +++++++ PassValid/PassValid.iml | 11 +++ PassValid/src/PassValid.java | 13 ++++ Rechtschreibung/.gitignore | 29 +++++++ Rechtschreibung/Rechtschreibung.iml | 11 +++ Rechtschreibung/src/Rechtschreibung.java | 13 ++++ 8 files changed, 178 insertions(+), 28 deletions(-) create mode 100644 PassValid/.gitignore create mode 100644 PassValid/PassValid.iml create mode 100644 PassValid/src/PassValid.java create mode 100644 Rechtschreibung/.gitignore create mode 100644 Rechtschreibung/Rechtschreibung.iml create mode 100644 Rechtschreibung/src/Rechtschreibung.java diff --git a/.idea/modules.xml b/.idea/modules.xml index 247cfb6..a7599ac 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,6 +3,8 @@ + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4187164..700a80a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,22 +4,15 @@ - - + + + + + + + - - - - - - - - - - - - - { - "keyToString": { - "ASKED_ADD_EXTERNAL_FILES": "true", - "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "SHARE_PROJECT_CONFIGURATION_FILES": "true", - "git-widget-placeholder": "master", - "jdk.selected.JAVA_MODULE": "17", - "last_opened_file_path": "/home/plex/Documents/code/java/dhbw", - "settings.editor.selected.configurable": "preferences.lookFeel" + - +}]]> + + + + + + + @@ -101,7 +120,28 @@ @@ -132,7 +172,9 @@ - diff --git a/PassValid/.gitignore b/PassValid/.gitignore new file mode 100644 index 0000000..f68d109 --- /dev/null +++ b/PassValid/.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/PassValid/PassValid.iml b/PassValid/PassValid.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/PassValid/PassValid.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/PassValid/src/PassValid.java b/PassValid/src/PassValid.java new file mode 100644 index 0000000..5ccbc53 --- /dev/null +++ b/PassValid/src/PassValid.java @@ -0,0 +1,13 @@ +import java.util.Scanner; +public class PassValid { + public static void main(String[] args) { + Scanner scanner = new Scanner(System.in); + String text = scanner.nextLine(); + if (text.length() >= 8 && (text.contains("!") || text.contains("$") || text.contains("%"))) { + System.out.println("Gut"); + } + else { + System.out.println("Müll"); + } + } +} \ No newline at end of file diff --git a/Rechtschreibung/.gitignore b/Rechtschreibung/.gitignore new file mode 100644 index 0000000..f68d109 --- /dev/null +++ b/Rechtschreibung/.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/Rechtschreibung/Rechtschreibung.iml b/Rechtschreibung/Rechtschreibung.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Rechtschreibung/Rechtschreibung.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Rechtschreibung/src/Rechtschreibung.java b/Rechtschreibung/src/Rechtschreibung.java new file mode 100644 index 0000000..091f8d4 --- /dev/null +++ b/Rechtschreibung/src/Rechtschreibung.java @@ -0,0 +1,13 @@ +import java.util.Scanner; + +public class Rechtschreibung { + public static void main(String[] args) { + Scanner scanner = new Scanner(System.in); + Rechtschreibung a = new Rechtschreibung(); + System.out.println(a.neueRechtschreibung(scanner.nextLine())); + } + + public String neueRechtschreibung(String text) { + return text.replace("ss", "ß"); + } +} \ No newline at end of file