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
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,22 @@ Your assignment is to use Built-In java classes to:
1. Look up the latitude and longitude coordinates in any online map you can find via Google.
1. Screenshot the map and add it into the **images** folder of this project.
1. Last add image markdown below this line to load your map image (Hint: Example image Markdown is just a couple lines above this).

![GPS Location of Ollie](images/GPSlocationforCIS12.JPG)
## PART 3 - Code Scanning and Interpretation

* Look at the getHiddenSecrets method and identify the following parts by editing this README.md and providing your answers:
* What is the **access modifer** (e.g. public, private, protected)?
1.**public**
* Is it a **Class method** or an **object Instance method**, how do you know?
1.**object Instance method**, It is embedded in the HiddenSecrets Class
* What is its **return data-type**?
1.**void**
* Does it require any **arguments** to call it, and if so, how many **parameters** and of what **data-type**?
1.**1 argument**, *1 parameter of file data type*
* Scan line by line through the code and try to determine how it works?
* What is familiar to you?
* What is not familiar to you?
* Do the **for** loops make sense, and if so, tell me what you think they do?
* What is familiar to you? **the try catch is familiar**
* What is not familiar to you? *the catch parameters are not familiar*
* Do the **for** loops make sense, and if so, tell me what you think they do? **I think they make sense. I think they are the responses to be printed that don't fall within the catch statements.**

## PART 4 - Turn in

Expand Down
Binary file modified external/metadata-extractor.jar
Binary file not shown.
Binary file added images/GPSlocationforCIS12.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/AccessToMetadata.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import com.drew.metadata.Metadata;

public class AccessToMetadata {
}
13 changes: 11 additions & 2 deletions src/HiddenSecrets.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

// PUT YOUR IMPORTS HERE

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;
public class HiddenSecrets {
public static void getHiddenSecrets(File file) {
try {
Expand Down Expand Up @@ -42,5 +43,13 @@ public static void main(String[] args) {
// convert that string into A Path type using Paths class,
// and call the getHiddenSecrets method to get the file's meta-data
// HERE
Scanner pathRequest;
pathRequest = new Scanner(System.in);
System.out.print("Give me a file path: ");
String fileInput = pathRequest.nextLine();
Path myPath = (Path)Paths.get(fileInput);
getHiddenSecrets(myPath.toFile());


}
}