So far, the foreach syntax has been primarily used with arrays, but it also works with any Collection object.
转载于:https://www.cnblogs.com/zhtf2014/archive/2010/01/28/1657987.html
转载于:https://www.cnblogs.com/zhtf2014/archive/2010/01/28/1657987.html