- Watch the below linked video, and follow along on how we build a Java Archive artifact (jar) from a GitHub project. Jar file build from GitHub Project
- If you didn't already, attempt to build the artifact, the jar file yourself! MetaData Extractor Code on GitHub
- Watch the below linked video, and follow along to import an external jar file into your project! Import External Jar into your Project
- If your artifact creation step was successful, see if you can import your build of the metadata jar file into Java-Assignment-003 after you start PART 2 below!
Just like you do every week now!!!
- Fork my repo
- Using IntelliJ clone your fork locally
- Use IntelliJ to activate the Fall-2022 local branch
- Implement the following assignment:
Your assignment is to use Built-In java classes to:
- Import the following java Built-In classes.
java.nio.file.Paths;
java.util.Scanner;
java.nio.file.Path;
- Read a jpg file path from the user.
- HINT 1: Create a Scanner object instance and use it to read a string.
- HINT 2: Use Paths class to get a path from your input!
- From your path object call a method that converts the file path to a File type object (Cause that's what getHiddenSecret declares as its parameters).
- Pass the file object as an argument to the pre-written getHiddenSecrets method.
- Run the program and type in the path for our sample image, and record the GPS coordinates in the output.
- HINT: the path can be relative to the project directory, maybe use the string in the example above :-)
- Look up the latitude and longitude coordinates in an online map.
- Screenshot the map and add it into the images folder of this project,
- Last add image markdown below this line to load your map image.
- Look at the getHiddenSecrets method and identify the following parts:
- What is the access modifer (public, private, protected)?
- Is it a Class method or an object Instance method, how do you know?
- What is its return data-type?
- Does it require any parameters, and if so, how many and of what 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?
- When completed, use your IDE to commit your Fall-2022 branch back to your GitHub Account's, Java-Assignment-003/Fall-2022 repo/branch.
- From your GitHub account's branch's page, issue a New pull request from your Fall-2022 branch to the instructor's Fall-2022 branch and save the Pull Request URL.
- Respond to this assignment with the Pull Request URL.