Yash Atreya, 86003902
-
Come up with a small programming exercise for yourself (write a sortable array in Java or something simple)
-
Think of at least 2 independent features that your exercise will accomplish. For the sortable array, it could be sorting a list of integers and sorting a list of strings.
-
Set up branches for each of these features; this means you must have at least three branches, including master.
-
main
is being used as themaster
as creating a new repo via Github, createmain
as the default branch. -
setup_array
is used to declare an empty array and testing the project initializing by printing it to the console. -
sorting_func
is used to populate the empty array created insetup_array
and implement the sorting functionality on the array.
-
git init
-
git clone [repo-url]
https://github.com/yash-atreya/CS499-Individual-Github-Exercise.git -
git checkout -b [new-branch-name]
-
git checkout [branch-name]
-
git push
-
git pull
-
git add [file-name | .]
-
git commit -m "commit-message"
-
git merge -m "merge-message
-
git log
-
Install the latest stable verson of node from here: https://nodejs.org/en/download/
-
This installs the npm package manager as well
- Run the
index.js
by navigating to the project directory in the terminal and typingnode index.js
- Video can be found here: https://drive.google.com/file/d/15KWv3nCrJdqRrnhrWLspU8HxxW69sng2/view?usp=sharing