Project 0: Hello, World
Started: Tuesday 2/8
For your programming in this course you may use either the traditional command line interface or an Integrated development environment (IDE) like eclipse. The purpose of this project is to familiarize youself with the environment under which you'll be working. In particular, you will be doing some variations of the Hello World program described in section 1.1 of our textbook. You are also asked to practice submitting your work even though the project itself will not be graded.
Create an empty directory in your home directory named
mcs178(or some other name you prefer) and
Next, create an empty directory in your
Next, use a text editor (emacs, nano, or any editor of your choice) to create a java source file called "HelloWorld.java" whose content is given as listing "Program 1.1.1" on page 6 of our textbook.
javacommands as shown in the box below listing "Program 1.1.1" on page 6 of the textbook.
After doing this, create a new java source file called "UseArgument.java", and then enter the code in listing "Program 1.1.2" on page 8 of our textbook. Compile the source file and run the class file as shown in the box below the listing.
Then, do exercise 1.1.5 on page 13 of the textbook. If you still have time, you can try the other exercises on page 13.
Finally, submit all your java source files through moodle. Use the procedure described in our instructions on submitting code document.