Skip to content

Latest commit

 

History

History
114 lines (94 loc) · 11 KB

README.md

File metadata and controls

114 lines (94 loc) · 11 KB

Object-oriented Programming with Java (CS252)

All instructions are written for Ubuntu 16.04 that you started using in Software Development Tools (CS165). The Luther College Ubuntu image comes with Netbeans and OpenJDK preinstalled. If you need to install JDK and Netbeans, use the Netbeans/JDK bunle specific for your platform. It's your responsibility to make the necessary changes if you are using a different OS (macOS, Windows, other flavors of Linux) or IDE.

  1. Check the version of Java you have installed: java -version and javac -version should return something like 1.8.0_144. It's fine to see a different version, but if java is not a recognized command, you need to install JDK.
  2. Fork java-class-pub repository on GitHub. If you are going to access your repository via SSH, add your public key to your GitHub account. See Adding a new SSH key to your GitHub account - User Documentation for details.
  3. Start Netbeans and choose Team\Remote\Clone from the menu.
  4. Enter your repository's URL. As I'm going to use SSH authentication, my URL is [email protected]:yasiro01/java-class-pub.git in this tutorial. It's https://github.com/yasiro01/java-class-pub.git for HTTPS access. If you don't have SSH keys, follow the GitHub tutorials on Generating a new SSH key and adding it to the ssh-agent - User Documentation or Using PuTTYgen on Windows to generate SSH key pairs | SSH.COM. You can also use HTTPS access and authenticate via username/password.
  5. If you are using SSH, choose authentication with Private/Public Key and browse to pick your id_rsa file. Mine is in /home/yasiro01/.ssh/id_rsa. Enter the passphrase you used when generated the keys.
  6. If you are using HTTPS, choose authentication with username/password and enter your GitHub credentials.
  7. Specify the target parent directory. Mine is /home/yasiro01/Projects.
  8. Click Next and proceed to the branch selection.
  9. You should see a single branch, master, already selected. Click Next to proceed to the final step.
  10. You will see you parent directory, clone name, checkout branch, and the remote name. Click Finish to complete the process.
  11. The repository contains project configuration files, so it should be immediately recognized by Netbeans as a valid project.
  12. Netbeans has a graphical interface to Git that you can access either via Team menu or the project context menu. You can also use terminal and execute git commands there.
  13. I recommend that you keep my code templates from the upstream as a separate branch (master) of your repository. See git - Pull new updates from original GitHub repository into forked GitHub repository - Stack Overflow for an answer or Syncing a fork - User Documentation for more details. The following command should work: git remote add upstream https://github.com/yasiro01/java-class-pub.git.
  14. Create a separate branch (exercise1, exercise2, etc.) for each assignment. See Create a new branch with git and manage branches · Kunena/Kunena-Forum Wiki for details. Don't do it in advance, wait until I publish the relevant code.
  15. Once you feel comfortable about Git, GitHub, and branching, look at GitHub: How to make a fork of public repository private? - Stack Overflow. Create a new private repository java-class-yourname and add https://github.com/yasiro01/java-class-pub.git as an upstream so you could pull the latest code templates from me.

References

Tools

Java Overview

Java Basics

File I/O

Collections

Testing

OOP

Abstraction

Encapsulation

Inheritance

Polymorphism

Interfaces

GUI

Generics

Data Structures