Java Reference
In-Depth Information
cd /home/walters
javac homework1/Tester.java
or
cd \cs1
java edu\sjsu\cs\walters\homework1\Tester.java
Note that the Java compiler needs the source file name and not the class name.
That is, you need to supply file separators (/ on UNIX, \ on Windows) and a file
extension ( .java ).
Step 7 Run your program from the base directory.
Unlike the Java compiler, the Java interpreter needs the class name (and not a
file name) of the class containing the main method. That is, use periods as
package separators, and don't use a file extension. For example,
cd /home/walters
java homework1.Tester
or
cd \cs1
java edu.sjsu.cs.walters.homework1.Tester
369
370
R ANDOM F ACT 8.1: The Explosive Growth of Personal
Computers
In 1971, Marcian E. ȒTedȓ Hoff, an engineer at Intel Corporation, was working
on a chip for a manufacturer of electronic calculators. He realized that it would
be a better idea to develop a general-purpose chip that could be programmed to
interface with the keys and display of a calculator, rather than to do yet another
custom design. Thus, the microprocessor was born. At the time, its primary
application was as a controller for calculators, washing machines, and the like. It
took years for the computer industry to notice that a genuine central processing
unit was now available as a single chip.
Hobbyists were the first to catch on. In 1974 the first computer kit, the Altair
8800, was available from MITS Electronics for about $350. The kit consisted of
Search WWH ::




Custom Search