changed the file structure

This commit is contained in:
Sage The DM 2024-08-27 10:41:17 +02:00
parent cd81159162
commit b1c3582880
391 changed files with 675 additions and 0 deletions

View file

@ -0,0 +1,17 @@
public class App {
public static void main(String[] args) {
// (Kein) Casting notwendig
int intValue = 42;
double doubleValue = intValue;
System.out.println("int value: " + intValue);
System.out.println("double value: " + doubleValue);
// Casting nötig
double largeDoubleValue = 123.456;
int intValueFromDouble = (int) largeDoubleValue;
System.out.println("double value: " + largeDoubleValue);
System.out.println("int value from double: " + intValueFromDouble);
}
}