java字符串數組初始化和賦值

//一維數組 String[] str = new String[5]; //建立一個長度爲5的String(字符串)型的一維數組 String[] str = new String[]{"","","","",""}; String[] str = {"","","","",""}; String數組初始化區別java        首先應該明白java數組裏面存的是對象的引用,因此必須初始化才
相關文章
相關標籤/搜索