for each loop in java
Java Programming Language Decision Making and Looping in java (Article) Decision Making and Looping in java (Program)
1301Program:
public class ForEachLoop { public static void main(String[] args) { int arr[]={12,23,44,56,78}; for(int i:arr){ System.out.println(i); } } }
Output:
12 23 44 56 78 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.