Skip to content

Commit dcce51d

Browse files
committed
Added For Each Loop working in JAVA
1 parent 61d3432 commit dcce51d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

For-each-Loop.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class For_Each
2+
{
3+
public static void main(String[] arg)
4+
{
5+
6+
int[] marks = { 125, 132, 95, 116, 110 };
7+
8+
// for each loop
9+
for (int num : marks)
10+
{
11+
System.out.println(num);
12+
}
13+
}
14+
15+
}

0 commit comments

Comments
 (0)