public class Demo04 {
public static void main(String[] args) {
int i=128;
byte b=(byte)i;
double a =i;
System.out.println(i);
System.out.println(b);
System.out.println(a);
System.out.println("============================");
System.out.println((int)23.7);
System.out.println((int)-45.89f);
System.out.println("============================");
char c='a';
int d= c+1;
System.out.println(d);
System.out.println((char)d);
}
}
public class Demo05 {
public static void main(String[] args) {
int money=10_0000_0000;
System.out.println(money);
int years=20;
int total=money*years;
System.out.println(total);
long total2=money*years;
System.out.println(total2);
long total3=money*((long)years);
System.out.println(total3);
}
}