Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
Binary file modified external/metadata-extractor.jar
Binary file not shown.
Binary file added images/ZooMap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions src/HiddenSecrets.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
}
}