This commit is contained in:
Luca Conte 2022-10-27 17:58:55 +02:00
parent 8582f31211
commit e5fe39f43d
2 changed files with 12 additions and 0 deletions

BIN
u05/TypeConversion.class Normal file

Binary file not shown.

12
u05/TypeConversion.java Normal file
View File

@ -0,0 +1,12 @@
public class TypeConversion {
public static void main(String[] args) {
int x;
double y;
// x = 5.4 * 4.3;
// x = 3.00001 - 1.00001;
x = (int) (3.00001 - 1.00001);
x = 4 / 5;
y = 2 - 1;
y = 3.0 * 2.6;
}
}