Student和students分別什么意思和關系
在程序中,創建新的學生對象:Student newStudent=new Student(ID,name);這句代碼中可不可以將Student換成students一直沒有弄清Student和student分別是是什么意思和區別。
感謝!
在程序中,創建新的學生對象:Student newStudent=new Student(ID,name);這句代碼中可不可以將Student換成students一直沒有弄清Student和student分別是是什么意思和區別。
感謝!
2016-09-18
舉報
2016-09-20
Student 是一個類,而students是一個集合,創建一個Student對象,然后通過put加入到students中,
2016-09-18
我記得students是一個map吧?Student是學生類。