-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
39 lines (32 loc) · 784 Bytes
/
Main.java
File metadata and controls
39 lines (32 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//File io
import java.io.File;
import java.io.FileNotFoundException;
//Imagework
import java.awt.image;
public class Main
{
public static void main(String[] args) throws FileNotFoundException
{
String[] pathToFiles = new String[args.length];
for(int i=0; i<args.length; i++)
pathToFiles[i] = args[i];
printArray(pathToFiles);
interpretImages(pathToFiles);
}
public static void interpretImages(String[] paths) throws FileNotFoundException
{
File[] files = new File[paths.length];
for(int i = 0; i < paths.length; i++)
{
String temp = paths[i];
files[i] = new File(temp);
}
for(File file : files)
System.out.println(file.getPath());
}
public static void printArray(String[] arr)
{
for(String temp : arr)
System.out.println(temp);
}
}