CS 112 Introduction to Programming - Yale University
CS 112 Introduction to Programming - Yale University
CS 112 Introduction to Programming - Yale University
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Writing Java Programs (Step 2): Compile<br />
<br />
<br />
Create the program by typing it in<strong>to</strong> a text edi<strong>to</strong>r, and<br />
save it as HelloWorld.java.<br />
Compile it by typing at the command-line:<br />
javac HelloWorld.java.<br />
command-line<br />
% javac HelloWorld.java<br />
<br />
This creates a Java bytecode file named: HelloWorld.class.