public class MainClass{ int[] a= new int[]{1,2,3,4D}; // error }
Type mismatch: cannot convert from double to int