For Loop Example 2
string [] fruit = "Apple|Apricot|Avocado|Banana|Blackberry|Blueberry|Cherry|Coconut";
for(string f in fruit) {
runnerLog(f);
}
Use this method when looping through arrays and you don't need to know the index position.
string [] fruit = "Apple|Apricot|Avocado|Banana|Blackberry|Blueberry|Cherry|Coconut";
for(string f in fruit) {
runnerLog(f);
}
Use this method when looping through arrays and you don't need to know the index position.