diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..b95853c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/README.md b/README.md index 4d9f4d9..7b2c110 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,14 @@ Your assignment is to use Built-In java classes to: * What is not familiar to you? * Do the **for** loops make sense, and if so, tell me what you think they do? +## Part 3 - Answers +* Access modifier is Public +* It is a class method because it is declared as a public class and is static +* Return data-type is void +* It requires a file path to call it +* what is familiar to me is the System.out and the format modifiers +* what is not familiar to me is the catch if and for parts as well as it look like you declared a new object FileInputStream(file) +* No the for loops don't really make sense to me ## PART 4 - Turn in ### Same as the last 2 Weeks! diff --git a/external/metadata-extractor.jar b/external/metadata-extractor.jar index aa8718e..3fc0745 100644 Binary files a/external/metadata-extractor.jar and b/external/metadata-extractor.jar differ diff --git a/images/ZooMap.png b/images/ZooMap.png new file mode 100644 index 0000000..366acd5 Binary files /dev/null and b/images/ZooMap.png differ diff --git a/src/HiddenSecrets.java b/src/HiddenSecrets.java index 71067b3..540465c 100644 --- a/src/HiddenSecrets.java +++ b/src/HiddenSecrets.java @@ -8,7 +8,9 @@ import java.io.FileNotFoundException; import java.io.IOException; -// PUT YOUR IMPORTS HERE +import java.nio.file.Paths; +import java.util.Scanner; +import java.nio.file.Path; public class HiddenSecrets { public static void getHiddenSecrets(File file) { @@ -37,10 +39,11 @@ public static void getHiddenSecrets(File file) { } public static void main(String[] args) { - // Put your code to request a file path, - // read in a string from System.in, - // convert that string into A Path type using Paths class, - // and call the getHiddenSecrets method to get the file's meta-data - // HERE + Scanner filePath = new Scanner(System.in); + System.out.println("Input file path here: "); + String string = filePath.nextLine(); + Path path = Path.of(string); + getHiddenSecrets(path.toFile()); + System.out.println(); } }