Latihan 1 Praktikum 2
public class Narrowing {
public static void main(String[] args) {
int k=11;
System.out.println("Integer widening: \nint = "+k+",byte="+(byte)k+", short = "+(short)k);
}
}INFO
public class Narrowing {
public static void main(String[] args) {
int k=11;
System.out.println("Integer widening: \nint = "+k+",byte="+(byte)k+", short = "+(short)k);
}
}