Compare commits

...

2 Commits

Author SHA1 Message Date
Hanin Aljalab 83fa5a8dd6 h 2024-11-26 00:46:46 +01:00
Hanin Aljalab ef3a71084f h 2024-11-26 00:32:25 +01:00
23 changed files with 38 additions and 11 deletions

View File

@ -0,0 +1,12 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="GrazieInspection" enabled="false" level="GRAMMAR_ERROR" enabled_by_default="false" />
<inspection_tool class="LanguageDetectionInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
</profile>
</component>

View File

@ -2,7 +2,6 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Muster2.iml" filepath="$PROJECT_DIR$/Muster2.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -15,7 +15,8 @@ public class DecToRom_Version_02 {
for (int i = 0; rom.length() > i; i++) {
char eingabe = rom.charAt(i); //einzelne String Zeichen ausselen
//einzelne String Zeichen ausselen
char eingabe = rom.charAt(i);
char zeichen;
if (i + 1 != rom.length()) {

View File

@ -109,7 +109,9 @@ public class TicTacToe {
}
}
// Profit in diagonals
if ((board[0][0] == board[1][1] && board[1][1] == board[2][2] && board[0][0] != ' ') || (board[0][2] == board[1][1] && board[1][1] == board[2][0] && board[0][2] != ' ')) {
if ((board[0][0] == board[1][1] && board[1][1] == board[2][2]
&& board[0][0] != ' ') || (board[0][2] == board[1][1]
&& board[1][1] == board[2][0] && board[0][2] != ' ')) {
return true;
}
return false;

View File

@ -27,11 +27,17 @@ public class Main {
stack.push('A');
stack.push('B');
stack.push('C');
// stack.push('(');
// stack.push(')');
// stack.push('[');
// stack.push(']');
// Remove character from stack and output
while (!stack.isEmpty()) {
System.out.println("Pop: " + stack.pop());
}
}
}

View File

@ -5,15 +5,11 @@ import java.util.*;
public class Main {
public static void main(String[] args) {
Stack stack = new Stack();
Stack stack = new Stack();
Scanner scanner = new Scanner(System.in);
String expression = scanner.nextLine();
BracketChecker bracketChecker = new BracketChecker(stack, expression);
System.out.println("Bitte geben Sie ihren Ausdruck ein");
BracketChecker bracketChecker = new BracketChecker(stack, expression);
System.out.println("Bitte geben Sie ihren Ausdruck ein");
}
}