u05
This commit is contained in:
parent
8582f31211
commit
e5fe39f43d
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue