public class practice {
public static void main(String[] args) {
int i1 = 128;
byte i2 = (byte)i1;
System.out.println(i1);
System.out.println(i2);
double i3 = i1;
System.out.println("====================");
System.out.println((int)23.7);
System.out.println((int)45.89f);
System.out.println("====================");
int money = 10_0000_0000;
int years = 20;
int total1 = money * years;
System.out.println(total1);
long total2 = total1;
System.out.println(total2);
long total3 = money *(long)years;
System.out.println(total3);
}
}
|