when should you use a foreach loop in java code example
Example: java for each
//itemset contains variables of type <Data Type>
for(<Data Type> item : itemset) {
//loop
}
//itemset contains variables of type <Data Type>
for(<Data Type> item : itemset) {
//loop
}