Initial commit of the source files.
This commit is contained in:
parent
33aaf00340
commit
9de27bdad4
|
@ -0,0 +1,54 @@
|
|||
|
||||
|
||||
public class Ausdruck {
|
||||
|
||||
public void ausgeben() {
|
||||
int int1 = 1, int2 = 2, int3 = 3;
|
||||
double double1 = 3.0, double2 = 4.0;
|
||||
boolean boolean1 = true;
|
||||
|
||||
System.out.println(int1 + int2 + int3--);
|
||||
System.out.println(int3);
|
||||
System.out.println(--int3);
|
||||
|
||||
int3 = 3;
|
||||
System.out.println(int1 + int2 * int3);
|
||||
System.out.println((int1 + int2) * int3);
|
||||
|
||||
System.out.println(int1 / int2 + ", " + int3 / int2);
|
||||
System.out.println(int1 / double1 + ", " + double2 / int3);
|
||||
System.out.println(int1 / 4 + ", " + int1 / 4.0);
|
||||
|
||||
System.out.println (int2 / int3 * double1);
|
||||
System.out.println (int2 / (int3 * double1));
|
||||
|
||||
System.out.println(9 % 4 + ", " + 9.0 % 4);
|
||||
|
||||
System.out.println("Ein Hund hat " + 2 + 2 + " Beine");
|
||||
System.out.println("Ein Hund hat " + (2 + 2) + " Beine");
|
||||
System.out.println("Zwei Hunde haben " + 2 * 4 + " Beine");
|
||||
|
||||
System.out.println(int1 == int2);
|
||||
System.out.println(int1 == int3 / int2);
|
||||
|
||||
System.out.println((int3 <= 3) && (double2 <= 2.999999));
|
||||
System.out.println((int3 < 3) || !(double2 <= 2.999999));
|
||||
System.out.println((int3 <= 3) && !(double2 <= 2.999999));
|
||||
|
||||
System.out.println(boolean1 = 7 > 6);
|
||||
System.out.println(int3 = int1 + int2 == 3);
|
||||
System.out.println((int3 = int2 - int1) == 1);
|
||||
|
||||
System.out.println(3 * 1000000);
|
||||
System.out.println(3 * 10000000);
|
||||
System.out.println(3 * 100000000);
|
||||
System.out.println(3 * 1000000000);
|
||||
System.out.println(3 * 1000000000L);
|
||||
System.out.println(3 * 1000000000d);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
(new Ausdruck()).ausgeben();
|
||||
}
|
||||
|
||||
}
|
|
@ -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,22 @@
|
|||
#BlueJ package file
|
||||
package.editor.height=400
|
||||
package.editor.width=560
|
||||
package.editor.x=514
|
||||
package.editor.y=187
|
||||
package.numDependencies=0
|
||||
package.numTargets=1
|
||||
package.showExtends=true
|
||||
package.showUses=true
|
||||
project.charset=UTF-8
|
||||
target1.editor.height=700
|
||||
target1.editor.width=900
|
||||
target1.editor.x=415
|
||||
target1.editor.y=346
|
||||
target1.height=50
|
||||
target1.name=Ausdruck
|
||||
target1.naviview.expanded=false
|
||||
target1.showInterface=false
|
||||
target1.type=ClassTarget
|
||||
target1.width=80
|
||||
target1.x=70
|
||||
target1.y=10
|
Loading…
Reference in New Issue