|
|
For this assignment you are going to write your first Java program called:
- MyFirstClass
As described below, you must create a file called MyFirstClass.java using a text editor. Then download the file Test.class to the same folder. After you compile all your classes as described below, along with the Test class, you will type the command:
java Test
The result of the previous command is that the class Test will run a series of tests on your code. At the end of the tests the program will tell you which option to enter in: http://www.calstatela.edu/faculty/jperezc/courses/CIS283/assignments/assignment00.htm
The test class will also print several messages telling you which tests were passed by your code and which did not. It may also give you hints about what you need to do in order to pass the remaining tests. You can run the tests as many times as you like and continue to refine your code until you are satisfied with the results (i.e. your code passes all the tests successfully). But submit your results only once. If you submit your results several times, only one (perhaps the first one) will count.
You must also send me your file MyFirstClass.java as an attachment.
Here are the steps you have to follow in order to complete this assignment:
- create a file called MyFirstClass.java using a text editor (notepad, for example).
- save file MyFirstClass.java in a folder called Assignment00
- the file MyFirstClass.java must contain the following:
class MyFirstClass {
}
javac MyFirstClass.java
- after the file compiles without errors, type:
java Test
|
|
|