單項選擇題

java語言當(dāng)中,增強for的格式()

A.for(inti=0;i<10;i++){}
B.for(Objecto<10){}
C.for(元素數(shù)據(jù)類型變量名:集合){}
D.for(集合:變量名){}

微信掃碼免費搜題