问题详情
能够遍历泛型List〈Integer〉al中的所有元素的语句是哪项?()
A、for(Integeri:al)
B、for(i:al)
C、for(al)
D、forEach(Integeri:al)