| Elements of the Java Platform | CS 161 - Java |
use pico or vi and the javac and java commands
Email me if you have questions.
You can get these values into the program in any way you like: from the command line or just by having "strings embedded in the source code".
Do not prompt the user for the values or bother trying to read the values from the keyboard. Do not try to use SavitchIn.
Hint: Make a copy of the MyName.java file; rename it Hello.java; and add what is necessary to fulfill the homework requirements.
to show the compiler execution with no errors, record the program running, and list the program source file. Use the exit command to end the script; print the result that is stored in the file named transcript.javac Hello.java java Hello cat Hello.java
|
jwd |