Code Monkey home page Code Monkey logo

java-assignment-003's Introduction

Java-Assignment-003

Input, Packages, Imports, and a static Method

PART 1 - Build an External Package

  1. 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
  2. If you didn't already, attempt to build the artifact, the jar file yourself! MetaData Extractor Code on GitHub
  3. Watch the below linked video, and follow along to import an external jar file into your project! Import External Jar into your Project
  4. 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!

PART 2 - Implementation

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:

  1. Import the following java Built-In classes.
java.nio.file.Paths;
java.util.Scanner;
java.nio.file.Path;
  1. 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!
  2. 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).
  3. Pass the file object as an argument to the pre-written getHiddenSecrets method.
  4. Run the program and type in the path for our sample image, and record the GPS coordinates in the output. Ollie the Otter Image
    • HINT: the path can be relative to the project directory, maybe use the string in the example above :-)
  5. Look up the latitude and longitude coordinates in an online map.
  6. Screenshot the map and add it into the images folder of this project,
  7. Last add image markdown below this line to load your map image.

PART 3 - Code Scanning and Interpretation

  • 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?

PART 4 - Turn in

Same as the last 2 Weeks!

  • 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.

java-assignment-003's People

Contributors

thartmanoftheredwoods avatar viable-hartman avatar pconstance106 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.