An assignment to practice github steps.
Author: Bhavyai Gupta
- Clone this repository to your local computer.
- Change author information in
README.md
andsrc/HelloWorld.java
to your first and last name - Edit
src/HelloWorld.java
such that the output is changed from 'Hello World!' to 'Hello yourname!', e.g. 'Hello Laura!'. - Verify that the output is correct by running
src/HelloWorld.java
. - Add your changes to git with
git add src/HelloWorld.java
, followed bygit commit -m 'Changed greeting'
- Create a screenshot of the terminal showing successful execution, save as
screenshot.png
in this directory. - Edit
README.md
(this file) and update the How to run the program section to match your program. - Commit both modified
README.md
andscreenshot.png
to git. - Push local git history to github
git push origin master
Note that README.md
is a markdown file. Special syntax takes care of formatting. There are many cheat-sheets online to get you started. Here is a cheat sheet
The Java program src/HelloWOrld.java
greets the world. To run from command line, first compile with javac -sourcepath src/ -d bin/ src/HelloWorld.java
and run with java -cp bin/ HelloWorld
. See screenshot below for an example terminal session.