It is the "Enhanced for loop".
It makes the looping easier for the collections and Arrays.
Here how it works;
for(shoppingCartItem scItem:items)...
ShoppingCartItem is a user defined class.
scItem is the reference of the object, which will be assigned while looping (the object will be retrieve from the collection "item")
items is the reference of the object, which is a Collection and type of ShoppingCartItem (mostly)
You can read the segment like this,
"for each object (
ShoppingCartItem type)in the collection
item, retrieve it and assign it to the
scItem reference and do some work inside the loop body"
I hope it helps.