Skip to content

Commit f071233

Browse files
committed
added exercise6
1 parent f3facba commit f071233

8 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Tue Oct 22 17:32:41 CST 2013
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apply plugin: 'java'
2+
apply plugin:'application'
3+
mainClassName = "ForEach"
4+
5+
run {
6+
args directory
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import java.nio.file.*;
2+
3+
public class ForEach {
4+
public static void main(String[] args) {
5+
for(Path parent : Paths.get(args[0])) {
6+
System.out.println(parent);
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)