Neu Geordnet usw.

master
BuildTools 3 years ago
parent d7dd860789
commit 903cf4fa16

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

@ -1,247 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BranchesTreeState">
<expand>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
</path>
</expand>
<select />
</component>
<component name="ChangeListManager">
<list default="true" id="86f42963-ed9f-4d18-9c81-a4cf18fa27c4" name="Default Changelist" comment="+PayBack">
<change afterPath="$PROJECT_DIR$/src/com/company/MultiplicationQuiz.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/com/company/mainAusgabe.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/com/company/BundeswehrPruefnummern.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/com/company/BundeswehrPruefnummern.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/com/company/PayBack_LOL.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/com/company/PayBack_LOL.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Class" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
<option name="UPDATE_TYPE" value="REBASE" />
</component>
<component name="ProjectId" id="1k1BpdfEvGNnSx2c1X5bJxpMHhA" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
</component>
<component name="RunManager" selected="Application.mainAusgabe">
<configuration name="BundeswehrPruefnummern" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.company.BundeswehrPruefnummern" />
<module name="JAVA-Aufgaben" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.company.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="EinkaufswagenNummer" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.company.EinkaufswagenNummer" />
<module name="JAVA-Aufgaben" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.company.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="EinkaufwagenNummerJasminFehler" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.company.EinkaufwagenNummerJasminFehler" />
<module name="JAVA-Aufgaben" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.company.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="Fernbedinung" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.company.Fernbedinung" />
<module name="JAVA-Aufgaben" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.company.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="mainAusgabe" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.company.mainAusgabe" />
<module name="JAVA-Aufgaben" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.company.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<list>
<item itemvalue="Application.BundeswehrPruefnummern" />
<item itemvalue="Application.EinkaufswagenNummer" />
<item itemvalue="Application.EinkaufwagenNummerJasminFehler" />
<item itemvalue="Application.Fernbedinung" />
<item itemvalue="Application.mainAusgabe" />
</list>
<recent_temporary>
<list>
<item itemvalue="Application.mainAusgabe" />
<item itemvalue="Application.Fernbedinung" />
<item itemvalue="Application.BundeswehrPruefnummern" />
<item itemvalue="Application.EinkaufswagenNummer" />
<item itemvalue="Application.EinkaufwagenNummerJasminFehler" />
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="86f42963-ed9f-4d18-9c81-a4cf18fa27c4" name="Default Changelist" comment="" />
<created>1604858401120</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1604858401120</updated>
</task>
<task id="LOCAL-00001" summary="EinkaufwagenNummer FERTIG">
<created>1604874532810</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1604874532810</updated>
</task>
<task id="LOCAL-00002" summary="+Jasmins Version EinkaufwagenNummer">
<created>1604908336396</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1604908336396</updated>
</task>
<task id="LOCAL-00003" summary="+Jasmins Version EinkaufwagenNummer">
<created>1604908350915</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1604908350915</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="FILTERS">
<map>
<entry key="branch">
<value>
<list>
<option value="master" />
</list>
</value>
</entry>
</map>
</option>
</State>
</value>
</entry>
</map>
</option>
<option name="oldMeFiltersMigrated" value="true" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="EinkaufwagenNummer FERTIG" />
<MESSAGE value="+Jasmins Version EinkaufwagenNummer" />
<option name="LAST_COMMIT_MESSAGE" value="+Jasmins Version EinkaufwagenNummer" />
</component>
<component name="WindowStateProjectService">
<state width="1877" height="243" key="GridCell.Tab.0.bottom" timestamp="1606298379087">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="243" key="GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040" timestamp="1606298379087" />
<state width="1877" height="186" key="GridCell.Tab.0.bottom/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605033112583" />
<state width="1877" height="243" key="GridCell.Tab.0.center" timestamp="1606298379087">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="243" key="GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040" timestamp="1606298379087" />
<state width="1877" height="186" key="GridCell.Tab.0.center/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605033112583" />
<state width="1877" height="243" key="GridCell.Tab.0.left" timestamp="1606298379086">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="243" key="GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040" timestamp="1606298379086" />
<state width="1877" height="186" key="GridCell.Tab.0.left/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605033112583" />
<state width="1877" height="243" key="GridCell.Tab.0.right" timestamp="1606298379087">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="243" key="GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040" timestamp="1606298379087" />
<state width="1877" height="186" key="GridCell.Tab.0.right/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605033112583" />
<state width="1877" height="262" key="GridCell.Tab.1.bottom" timestamp="1605022562079">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="262" key="GridCell.Tab.1.bottom/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605022562079" />
<state width="1877" height="262" key="GridCell.Tab.1.center" timestamp="1605022562079">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="262" key="GridCell.Tab.1.center/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605022562079" />
<state width="1877" height="262" key="GridCell.Tab.1.left" timestamp="1605022562079">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="262" key="GridCell.Tab.1.left/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605022562079" />
<state width="1877" height="262" key="GridCell.Tab.1.right" timestamp="1605022562079">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="1877" height="262" key="GridCell.Tab.1.right/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605022562079" />
<state x="686" y="240" key="RollbackChangesDialog" timestamp="1605007609774">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="686" y="240" key="RollbackChangesDialog/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1605007609774" />
<state x="552" y="252" key="Vcs.Push.Dialog.v2" timestamp="1604908396517">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="552" y="252" key="Vcs.Push.Dialog.v2/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1604908396517" />
<state x="777" y="433" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2" timestamp="1604858680692">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="777" y="433" key="com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialogupdate-v2/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1604858680692" />
<state x="623" y="225" width="672" height="678" key="search.everywhere.popup" timestamp="1604861597120">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="623" y="225" width="672" height="678" key="search.everywhere.popup/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1604861597120" />
<state x="682" y="431" key="vcs.readOnlyHandler.ReadOnlyStatusDialog" timestamp="1604905992254">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="682" y="431" key="vcs.readOnlyHandler.ReadOnlyStatusDialog/3840.0.1920.1040/1920.0.1920.1040/0.0.1920.1040@0.0.1920.1040" timestamp="1604905992254" />
</component>
</project>

@ -1,4 +1,4 @@
package com.company;
package com.company.bmi;
public class HealthKlasse {

@ -1,4 +1,4 @@
package com.company;
package com.company.bmi;
import java.util.Scanner;

@ -1,4 +1,4 @@
package com.company;
package com.company.fernbedinung;
import java.util.Scanner;
@ -32,13 +32,13 @@ public class Fernbedinung {
senderPosition = sA.senderWechsel("DOWN", senderPosition);
System.out.println(senderPosition);
}
if (programmAuswahl.equals("rename")) {
System.out.println("Welcher Name soll der Sender haben? ");
String neuerSenderName = scanner.nextLine().replace("-", "");
sA.nameSpeichern(senderPosition, neuerSenderName);
System.out.println("Neur Name lautet: "+neuerSenderName);
}
if (programmAuswahl.equals("name")) {
if (programmAuswahl.equals("rename")) {
System.out.println("Welcher Name soll der Sender haben? ");
String neuerSenderName = scanner.nextLine().replace("-", "");
sA.nameSpeichern(senderPosition, neuerSenderName);
System.out.println("Neur Name lautet: "+neuerSenderName);
}
System.out.println(sA.nameAusgeben(senderPosition));
}
if (programmAuswahl.equals("x")) {

@ -1,4 +1,4 @@
package com.company;
package com.company.fernbedinung;
public class senderAuswahl {

@ -1,4 +1,4 @@
package com.company;
package com.company.jvaBasics;
public class AnalogUhr {

@ -1,4 +1,4 @@
package com.company;
package com.company.jvaBasics;
public class Main {

@ -1,4 +1,4 @@
package com.company;
package com.company.jvaBasics;
public class Rotieren {

@ -1,4 +1,4 @@
package com.company;
package com.company.jvaBasics;
public class addierenZwierGanzzahlen {

@ -1,4 +1,4 @@
package com.company;
package com.company.kopffitness;
import java.util.concurrent.ThreadLocalRandom;

@ -1,4 +1,5 @@
package com.company;
package com.company.kopffitness;
import java.util.Scanner;
public class mainAusgabe {

@ -0,0 +1,79 @@
package com.company.passwort;
public class Password {
private char[] passwordaktuell;
public Password(char[] passwordAktuell) {
this.passwordaktuell = passwordAktuell;
}
boolean isStrong(String password) {
// Enthält mindestens acht Zeichen
if (password.length() < 8) {
return false;
}
// Zähle einzelne Zeichentypen
int lowercase = 0;
int uppercase = 0;
int number = 0;
int special = 0;
// Gehe String durch
for (int i = 0; i < password.length(); i++) {
char c = password.charAt(i);
// Bestimme Character-Code
int charCode = charToNumber(c);
// ist ein Kleinbuchstabe
if (charCode >= charToNumber('a') && charCode <= charToNumber('z'))
lowercase += 1;
// ist ein Großbuchstabe
else if (charCode >= charToNumber('A') && charCode <= charToNumber('Z'))
uppercase += 1;
// ist eine Ziffer
else if (charCode >= charToNumber('0') && charCode <= charToNumber('9'))
number += 1;
// ist ein Sonderzeichen (! oder *)
else if (charCode == charToNumber('!') || charCode == charToNumber('*'))
special += 1;
}
// Sind alle Zeichen gezählt, werte aus
// Gebe true zurück, wenn alle Bedingungen erfüllt sind
if (lowercase > 0 && uppercase > 0 && number > 0 && special > 0) {
return true;
} else {
return false;
}
}
// Funktion zum Konvertieren eines Buchstabens in Character-Code. Die
// Funktion erhält das Zeichen, für den der Code zurückgeliefert wird.
int charToNumber(char c) {
return (int) c;
}
public boolean isCorrect(char[] passwordEingabe){
if(passwordEingabe.equals(passwordaktuell)){
return true;
} else{
return false;
}
}
public boolean changePassword(char[] passwordOld, char[] passwordNew){
if(isCorrect(passwordOld)){
if(isStrong(String.valueOf(passwordNew))){
return true;
}else{
return false;
}
}else{
return false;
}
}
public void deletePassword(char[] passwordOld){
if(isCorrect(passwordOld)){
//Löschen
}
}
}

@ -0,0 +1,39 @@
package com.company.passwort;
public class einUndAusgabe {
public static void main(String[] args){
char[] pwd_first = "PassWD15!!".toCharArray();
char[] pwd_weak = "1234567890".toCharArray();
char[] pwd_strong = "NewPWD16!!".toCharArray();
// Erzeuge ein neues Passwortobjekt und setze das
// Passwort auf "PassW15!!"
Password pwd = new Password(pwd_first);
// Ändere Passwort auf "1234567890"
// Klappt nicht, weil das neue Passwort schwach ist
System.out.println(pwd.changePassword(pwd_first, pwd_weak));
// Verändern der lokalen pwd_first-Variablen
// Darf keine Auswirkungen auf das Passwort im pwd-Objekt haben.
pwd_first[0] = 'p';
// Ändere Passwort auf "NewPWD16!!"
// Klappt nicht, weil das alte Passwort nicht stimmt
System.out.println(pwd.changePassword(pwd_first, pwd_strong));
// Zurücksetzen der lokalen pwd_first-Variablen
// Darf keine Auswirkungen auf das Passwort im pwd-Objekt haben.
pwd_first[0] = 'P';
// Ändere Passwort auf "NewPWD16!!"
// Klappt, weil das alte Passwort stimmt und
// das neue Passwort stark ist
System.out.println(pwd.changePassword(pwd_first, pwd_strong));
}
}

@ -1,4 +1,4 @@
package com.company;
package com.company.pruefnummern;
import java.util.Scanner;
public class BundeswehrPruefnummern {

@ -1,4 +1,4 @@
package com.company;
package com.company.pruefnummern;
import java.util.Scanner;
public class EinkaufwagenNummerJasminFehler {

@ -1,4 +1,4 @@
package com.company;
package com.company.pruefnummern;
import java.util.Scanner;

@ -1,4 +1,4 @@
package com.company;
package com.company.schrittzähler;
public class StepCounter {

@ -1,4 +1,4 @@
package com.company;
package com.company.schrittzähler;
public class schrittzähler {
Loading…
Cancel
Save