main
parent
8d1ff26d6a
commit
ef3a71084f
|
@ -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>
|
|
@ -2,7 +2,6 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/Muster2.iml" filepath="$PROJECT_DIR$/Muster2.iml" />
|
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -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>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -15,7 +15,8 @@ public class DecToRom_Version_02 {
|
||||||
|
|
||||||
for (int i = 0; rom.length() > i; i++) {
|
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;
|
char zeichen;
|
||||||
|
|
||||||
if (i + 1 != rom.length()) {
|
if (i + 1 != rom.length()) {
|
||||||
|
|
|
@ -109,7 +109,9 @@ public class TicTacToe {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Profit in diagonals
|
// 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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -27,11 +27,17 @@ public class Main {
|
||||||
stack.push('A');
|
stack.push('A');
|
||||||
stack.push('B');
|
stack.push('B');
|
||||||
stack.push('C');
|
stack.push('C');
|
||||||
|
// stack.push('(');
|
||||||
|
// stack.push(')');
|
||||||
|
// stack.push('[');
|
||||||
|
// stack.push(']');
|
||||||
|
|
||||||
// Remove character from stack and output
|
// Remove character from stack and output
|
||||||
while (!stack.isEmpty()) {
|
while (!stack.isEmpty()) {
|
||||||
System.out.println("Pop: " + stack.pop());
|
System.out.println("Pop: " + stack.pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue