문제

✏️ 각 기본형 타입별 배열을 모두 선언해보세요. int, byte, boolean 등

 

결과

 

//-----정수형----------
byte[] a=new int[];
short[] b=new short[];
int[] c=new int[];
long[] d=new long[];

//-----논리형----------
boolean[] e=new boolean[];

//-----실수형----------
float[] f=new float[];
double[] g=new double[];

//-----문자형----------
char[] h=new char[];

+ Recent posts