@@ -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 |
@@ -0,0 +1,8 @@ | |||
# Default ignored files | |||
/shelf/ | |||
/workspace.xml | |||
# Editor-based HTTP Client requests | |||
/httpRequests/ | |||
# Datasource local storage ignored files | |||
/dataSources/ | |||
/dataSources.local.xml |
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<project version="4"> | |||
<component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="openjdk-22" project-jdk-type="JavaSDK"> | |||
<output url="file://$PROJECT_DIR$/out" /> | |||
</component> | |||
</project> |
@@ -0,0 +1,8 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<project version="4"> | |||
<component name="ProjectModuleManager"> | |||
<modules> | |||
<module fileurl="file://$PROJECT_DIR$/Prog 3 A.iml" filepath="$PROJECT_DIR$/Prog 3 A.iml" /> | |||
</modules> | |||
</component> | |||
</project> |
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<project version="4"> | |||
<component name="VcsDirectoryMappings"> | |||
<mapping directory="$PROJECT_DIR$" vcs="Git" /> | |||
</component> | |||
</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" isTestSource="false" /> | |||
</content> | |||
<orderEntry type="inheritedJdk" /> | |||
<orderEntry type="sourceFolder" forTests="false" /> | |||
</component> | |||
</module> |
@@ -0,0 +1,6 @@ | |||
public class HelloWorld { | |||
public static void main(String[] args) { | |||
System.out.println("Hello World!"); | |||
} | |||
} |
@@ -0,0 +1,9 @@ | |||
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or | |||
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter. | |||
public class Main { | |||
public static void main(String[] args) { | |||
System.out.println("Hello World!"); | |||
} | |||
} |
@@ -0,0 +1,33 @@ | |||
package praktikum01; | |||
public class Zahlenfilter { | |||
static int temp = 0; | |||
public static void main(String[] args) { | |||
for (int i = 0; i < 200; i++ ){ | |||
System.out.println("Zahl |" +i+"|"); | |||
//DURCH 5 TEILBAR---------------------------------------------------// | |||
if (i % 5== 0){ | |||
System.out.println("--------> ["+i+"] ist durch 5 teilbar!"); | |||
} | |||
//AM ENDE EINE 9---------------------------------------------------// | |||
if (i %10 ==9){ | |||
System.out.println("--------> [" +i+"] ist endet auf 9!"); | |||
} | |||
//ADDIERT DURCH 3 TEILBAR -----------------------------------------// | |||
if ((i + temp) % 3 ==0){ | |||
int ergebnis = i +temp; | |||
System.out.println("--------> ["+i+"] und [" +temp+ "] Addiert ergeben [" +ergebnis + "] und [" +ergebnis+ "] ist durch 3 teilbar"); | |||
} | |||
//ZUWEISUNG TEMP WERT----------------------------------------------// | |||
temp = i; | |||
} | |||
} | |||
} |