Commit various errors in the Hello World program to observe and understand the compiler's error messages. Follow the steps below:
- Fork this repository to your own GitHub account.
- Clone the forked repository locally to your machine.
- Create a new branch named Feature01.
Make each of the modifications listed below, and perform the steps noted after #10 for each error:
- Remove one of the opening curly braces.
- Remove one of the closing curly braces.
- Instead of main, write mian.
- Remove the word static.
- Remove the word public.
- Remove the word System.
- Replace println with Println.
- Replace println with print.
- Delete one parenthesis.
- Add an extra parenthesis.
After making each change:
- Compile/Run the program using the IntelliJ IDE
- Read the error message (if any)
- Ensure that you take a screenshot of each error message.
- Then correct the error.
Save each error message screenshot like error01.png, error02.png, ..., errorN.png, etc. in your project directory.
Note: This exercise aims to familiarize you with various error scenarios and help you interpret compiler messages. It enhances your ability to troubleshoot and understand common programming mistakes.
Just as you did in the first lab (Reference the Lab video in your Week 1 module):
- create a Feature01 branch of your code if you haven't already.
- Commit your working code and images to your local copy/Feature01 branch
- Push it to your Remote/origin branch (i.e. GitHub: Feature01 -> origin/Feature01)
- Then issue a Pull request to my instructor repo
- Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.