Hanin Aljalab 2024-11-26 00:23:16 +01:00
parent 8d1ff26d6a
commit ef3a71084f
22 changed files with 34 additions and 3 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());
}
}
}