Problem 2
Compiling Practice
This assignment is designed to give you practice compiling and
running a Java program. Start by saving the following file to your
pbd-solutions/02/
folder. Create the 02/
folder if you need to.
(You can save the file by right-clicking and choosing
Save Link As...
)
Compile the program with the javac
utility and then
run the bytecode file using java
interpreter, as shown below.
Linux
~$ cd lastname ~/lastname$ cd pbd-solutions/02 ~/lastname/pbd-solutions/02$ ls SineWave.java ~/lastname/pbd-solutions/02$ javac SineWave.java ~/lastname/pbd-solutions/02$ ls SineFrame.class SineWave.class SinePanel.class SineWave.java ~/lastname/pbd-solutions/02$ java SineWave
Done!
◄ 1.2: Creating Folders 3: An Important Message ►
Adapted from ProgrammingByDoing.com
©2013 Graham Mitchell
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.