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.
Login, Edit, Compile, Run on a Pantheon Machine<br />
(Cont.)<br />
- Compile a Java program<br />
$ javac HelloWorld.java<br />
- Take a look <strong>to</strong> see that HelloWorld.class is generated<br />
$ ls<br />
HelloWorld.java HelloWorld.class<br />
- Run Java interpreter<br />
$ java HelloWorld<br />
14