Compare commits

...

No commits in common. "main" and "master" have entirely different histories.
main ... master

7 changed files with 101 additions and 2 deletions

BIN
Aufgaben/.DS_Store vendored Normal file

Binary file not shown.

10
Aufgaben/.classpath Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>

1
Aufgaben/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/bin/

17
Aufgaben/.project Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Aufgaben</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,14 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17

View File

@ -0,0 +1,59 @@
public class Aufgabe1 {
public static void main(String[] args) {
// schreibe(" Hello World!");
//umrechnen(300000000);
einmaleins();
}
public static void schreibe(String t) {
int y = t.length();
for (int i = y - 1; i != -1; i--) {
System.out.print(t.charAt(i));
}
}
public static void umrechnen(int z) {
if (z < 60) {
System.out.print("Sekunden " + z);
} else {
int a = z % 60;
int b = z / 60;
System.out.print(" Sekunden " + a);
if (b >= 60) {
int c = b / 60;
int d = b % 60;
System.out.print(" Minuten " + d);
if (c >= 24) {
int e = c / 24;
int f = c % 24;
System.out.print(" Stunden " + f );
if(e > 365) {
int g = e/356;
int h = e%356;
System.out.println( " Tage " + h + " Jahre " + g);
}
}
}
}
}
public static void einmaleins() {
for (int i = 1; i < 11; i++) {
for(int j = 1; j < 11; j++) {
int a =i * j;
System.out.print(a);
}
System.out.println();
}
}
}

View File

@ -1,2 +0,0 @@
# Aufgaben1