int[] array = new int[5];問題は、なぜ配列に属性があるのかということです 長さスパン> しかし、文字列とその逆ではありませんか?
System.out.println(array.length);//配列の長さ
String str = "string";
System.out.println(str.length());length() for 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.