Initial sharing of project
commit
a47837e2ca
|
@ -0,0 +1,15 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Beschreiben Sie hier die Klasse aaa.
|
||||||
|
*
|
||||||
|
* @author (Ihr Name)
|
||||||
|
* @version (eine Versionsnummer oder ein Datum)
|
||||||
|
*/
|
||||||
|
public class Aaa
|
||||||
|
{
|
||||||
|
public static void aaa() {
|
||||||
|
|
||||||
|
System.out.println("Hello World!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
|
||||||
|
import java.util.Scanner;
|
||||||
|
public class Eingabe
|
||||||
|
{
|
||||||
|
|
||||||
|
public static void eingabe()
|
||||||
|
{
|
||||||
|
System.out.println("Bitte erste Zahl eingeben:");
|
||||||
|
|
||||||
|
Scanner sc = new Scanner(System.in);
|
||||||
|
int eingabe1 = sc.nextInt();
|
||||||
|
int eingabe2 = sc.nextInt();
|
||||||
|
int summe;
|
||||||
|
summe = eingabe1 + eingabe2;
|
||||||
|
|
||||||
|
int differenz;
|
||||||
|
differenz = eingabe1 - eingabe2;
|
||||||
|
|
||||||
|
int produkt;
|
||||||
|
produkt = eingabe1 * eingabe2;
|
||||||
|
|
||||||
|
|
||||||
|
System.out.print("Summe: ");
|
||||||
|
System.out.println(summe);
|
||||||
|
|
||||||
|
System.out.print("Differenz: ");
|
||||||
|
System.out.println(differenz);
|
||||||
|
|
||||||
|
System.out.print("Produnkt: ");
|
||||||
|
System.out.println(produkt);
|
||||||
|
|
||||||
|
int quotient;
|
||||||
|
if (eingabe2 == 0)
|
||||||
|
System.out.println("Fehler: Man darf nicht durch 0 teilen.");
|
||||||
|
else {
|
||||||
|
quotient = eingabe1 / eingabe2;
|
||||||
|
System.out.print("Quotient: ");
|
||||||
|
System.out.println(quotient);
|
||||||
|
|
||||||
|
int rest;
|
||||||
|
rest = eingabe1 % eingabe2;
|
||||||
|
System.out.print("Rest: ");
|
||||||
|
System.out.println(rest);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Beschreiben Sie hier die Klasse HelloWorldCBT.
|
||||||
|
*
|
||||||
|
* @author (Ihr Name)
|
||||||
|
* @version (eine Versionsnummer oder ein Datum)
|
||||||
|
*/
|
||||||
|
public class HelloWorldCBT
|
||||||
|
{
|
||||||
|
public static void HelloWorldCBT()
|
||||||
|
{
|
||||||
|
System.out.println("Syntax Error. Error code: 154882");
|
||||||
|
}
|
||||||
|
}
|
|
@ -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,17 @@
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Beschreiben Sie hier die Klasse Variablen.
|
||||||
|
*
|
||||||
|
* @author (Ihr Name)
|
||||||
|
* @version (eine Versionsnummer oder ein Datum)
|
||||||
|
*/
|
||||||
|
public class Variablen
|
||||||
|
{
|
||||||
|
public static void variablen()
|
||||||
|
{
|
||||||
|
int meineVariable = 42;
|
||||||
|
|
||||||
|
System.out.println("meine Variable ist:");
|
||||||
|
System.out.println(meineVariable);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,53 @@
|
||||||
|
#BlueJ package file
|
||||||
|
editor.fx.0.height=728
|
||||||
|
editor.fx.0.width=800
|
||||||
|
editor.fx.0.x=584
|
||||||
|
editor.fx.0.y=314
|
||||||
|
objectbench.height=89
|
||||||
|
objectbench.width=776
|
||||||
|
package.divider.horizontal=0.6
|
||||||
|
package.divider.vertical=0.8208955223880597
|
||||||
|
package.editor.height=433
|
||||||
|
package.editor.width=661
|
||||||
|
package.editor.x=769
|
||||||
|
package.editor.y=232
|
||||||
|
package.frame.height=600
|
||||||
|
package.frame.width=800
|
||||||
|
package.numDependencies=0
|
||||||
|
package.numTargets=4
|
||||||
|
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=Aaa
|
||||||
|
target1.showInterface=false
|
||||||
|
target1.type=ClassTarget
|
||||||
|
target1.width=120
|
||||||
|
target1.x=70
|
||||||
|
target1.y=10
|
||||||
|
target2.height=70
|
||||||
|
target2.name=HelloWorldCBT
|
||||||
|
target2.showInterface=false
|
||||||
|
target2.type=ClassTarget
|
||||||
|
target2.width=120
|
||||||
|
target2.x=200
|
||||||
|
target2.y=10
|
||||||
|
target3.height=70
|
||||||
|
target3.name=Variablen
|
||||||
|
target3.showInterface=false
|
||||||
|
target3.type=ClassTarget
|
||||||
|
target3.width=120
|
||||||
|
target3.x=10
|
||||||
|
target3.y=90
|
||||||
|
target4.height=70
|
||||||
|
target4.name=Eingabe
|
||||||
|
target4.showInterface=false
|
||||||
|
target4.type=ClassTarget
|
||||||
|
target4.width=120
|
||||||
|
target4.x=140
|
||||||
|
target4.y=90
|
Loading…
Reference in New Issue