int[] array = new int[5];的length()问题是为什么数组有一个属性 长度跨度> 但不是字符串,反之亦然?
System.out.println(array.length);//数组长度
String str = string”;
System.out.println(str.length());string
int[] tab = {1,2,3};
String[] tab = new String[3];
Object obj = new String[20];
int[] tab = new int[2];Output:
System.out.println(tab.getClass());
class [I
Please disable your ad blocker and refresh the window to use this website.