Initial sharing of project
commit
d00ef7f26c
|
@ -0,0 +1,77 @@
|
||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
public class Anfang
|
||||||
|
{
|
||||||
|
public static void Aufgabe1() {
|
||||||
|
String test = "Hello_World!";
|
||||||
|
|
||||||
|
|
||||||
|
for(int i = 11; i >(-1); i--)
|
||||||
|
{
|
||||||
|
System.out.println( test.charAt(i) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Aufgabe2() {
|
||||||
|
|
||||||
|
Scanner Sc = new Scanner (System.in);
|
||||||
|
int eingabe = Sc.nextInt();
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println(eingabe + "Sekunden entsprechen");
|
||||||
|
System.out.println(eingabe/60/60/24/365 + "Jahren");
|
||||||
|
System.out.println(eingabe/60/60/24 + "Tagen");
|
||||||
|
System.out.println(eingabe/60/60 + "Stunden");
|
||||||
|
System.out.println(eingabe/60 + "Minuten");
|
||||||
|
System.out.println(eingabe + "Sekunden");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Aufgabe3()
|
||||||
|
{
|
||||||
|
for(int i = 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*2);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*3);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*4);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*5);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*6);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*7);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*8);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*9);
|
||||||
|
}
|
||||||
|
for(int i= 1; i < 11; i++)
|
||||||
|
{
|
||||||
|
System.out.print(i*10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
Dies ist die README-Datei des Projekts. Hier sollten Sie Ihr Projekt
|
||||||
|
beschreiben.
|
||||||
|
Erzählen Sie dem Leser (jemand, der nichts über dieses Projekt weiss),
|
||||||
|
alles, was er/sie wissen muss. Üblicherweise sollte der Kommentar
|
||||||
|
zumindest die folgenden Angaben umfassen:
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
PROJEKTBEZEICHNUNG:
|
||||||
|
PROJEKTZWECK:
|
||||||
|
VERSION oder DATUM:
|
||||||
|
WIE IST DAS PROJEKT ZU STARTEN:
|
||||||
|
AUTOR(EN):
|
||||||
|
BENUTZERHINWEISE:
|
|
@ -0,0 +1,32 @@
|
||||||
|
#BlueJ package file
|
||||||
|
editor.fx.0.height=728
|
||||||
|
editor.fx.0.width=800
|
||||||
|
editor.fx.0.x=854
|
||||||
|
editor.fx.0.y=192
|
||||||
|
objectbench.height=100
|
||||||
|
objectbench.width=776
|
||||||
|
package.divider.horizontal=0.6
|
||||||
|
package.divider.vertical=0.8003731343283582
|
||||||
|
package.editor.height=422
|
||||||
|
package.editor.width=661
|
||||||
|
package.editor.x=771
|
||||||
|
package.editor.y=25
|
||||||
|
package.frame.height=600
|
||||||
|
package.frame.width=800
|
||||||
|
package.numDependencies=0
|
||||||
|
package.numTargets=1
|
||||||
|
package.showExtends=true
|
||||||
|
package.showUses=true
|
||||||
|
project.charset=UTF-8
|
||||||
|
readme.height=60
|
||||||
|
readme.name=@README
|
||||||
|
readme.width=48
|
||||||
|
readme.x=10
|
||||||
|
readme.y=10
|
||||||
|
target1.height=70
|
||||||
|
target1.name=Anfang
|
||||||
|
target1.showInterface=false
|
||||||
|
target1.type=ClassTarget
|
||||||
|
target1.width=120
|
||||||
|
target1.x=70
|
||||||
|
target1.y=10
|
Loading…
Reference in New Issue