Grundlagen variablen(Buchstaben) & if
This commit is contained in:
parent
784ca4113f
commit
664a85c047
2 changed files with 7 additions and 1 deletions
Binary file not shown.
|
@ -3,9 +3,15 @@ public class Grundlagen {
|
||||||
System.out.println("Hello World");
|
System.out.println("Hello World");
|
||||||
|
|
||||||
int x = 99;
|
int x = 99;
|
||||||
int y = 1;
|
int y = 2;
|
||||||
x = x + 1;
|
x = x + 1;
|
||||||
x = x + y;
|
x = x + y;
|
||||||
System.out.println(x);
|
System.out.println(x);
|
||||||
|
|
||||||
|
char myA = 'a';
|
||||||
|
|
||||||
|
if (x > 101) {
|
||||||
|
System.out.println("Der Wert is grösser als 101");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue