changed the file structure
This commit is contained in:
parent
cd81159162
commit
b1c3582880
391 changed files with 675 additions and 0 deletions
17
Code/Steiner/helpMePlease/src/App.java
Normal file
17
Code/Steiner/helpMePlease/src/App.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue