Code Monkey home page Code Monkey logo

01-intro-to-java-2368883029's Introduction

Instructions

All of your tasks are to be done in the file src/main/java/Basics.java. For your convenience, we have labelled each task with a TODO and included instructions at the top of the file.

For this exercise, you can either complete it through the GitHub UI or run it through IntelliJ (recommended).

After finishing this exercise, make sure you also finish the related Quercus quiz.

Readings

You will want to read through Chapter 1: Introduction to Java.

For each of the tasks in Basics.java, we have included a brief summary of the relevant reading to help you.

Doing this exercise in IntelliJ

  • In IntelliJ, create a new project by selecting "Get from version control" (If you already have a project open, close your current project ("File" --> "Close Project")

  • Make sure "Version control" is set to "Git"

  • In this GitHub repo, press the green "Code" button in the top right and copy the https url to the clipboard and then into IntelliJ.

  • IntelliJ will automatically create a directory for your project on your computer (to keep your files organized you can choose where to save it if you want or just use the default)

  • Click Clone to setup your project.

  • You will be prompted to enter your Github username and password to complete the setup. If this does not work, you may need to use an Access Token instead.

  • IntelliJ should detect the build.gradle file and automatically set up the project for you, but this may take a bit of time.

  • You should now be able to run Basics.java and its associated unit tests in BasicsTest.java. Open Basics.java and make the changes needed in order for all of the tests to pass.

  • When you are done, commit and push your code using IntelliJ's git integration from the menu bar.

    git menu bar items in IntelliJ

    • After you press the green checkmark, you need to fill in a commit message and press Commit (or Commit and Push...) in the menu that appears in IntelliJ.
    • After you push, you should see an update in the bottom right corner indicating whether or not anything was pushed. "Everything is up to date" means there were no new commits to push.

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.