Skip to content
Open

done #20

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.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ 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).

![img.png](img.png)
## 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:
Expand Down
Binary file added img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion src/HiddenSecrets.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Scanner;
import java.nio.file.Paths;
import java.nio.file.Path;
import com.drew.metadata.Metadata;

// PUT YOUR IMPORTS HERE

Expand Down Expand Up @@ -36,11 +41,28 @@ public static void getHiddenSecrets(File file) {
}
}

public static void main(String[] args) {
public static void main(String[] args) throws IOException {
// Put your code to request a file path,

Scanner wat = new Scanner(System.in);
// read in a string from System.in,
//input a Sout line
System.out.println("Type 'images/OllieTheOtter.jpg' :)");
String idk = wat.nextLine();
// convert that string into A Path type using Paths class,

//Paths.get(idk,null);
Path who = Paths.get(idk);

// File why = new File(who);
// File ugh = (File)Files.createFile(who);
// and call the getHiddenSecrets method to get the file's meta-data
getHiddenSecrets(who.toFile());
// HERE
}
}
/**
*
* 40° 46' 37.46" N
* -124° 8' 41.55" W
*/