Programming and Problem Solving with Java

(やまだぃちぅ) #1

3


CHAPTER


we examined enough Java syntax to be able to construct
application classes using assignment and simple input and output, and
to write a user class within an application. In that chapter, we focused on
the charand Stringtypes and saw how to construct expressions using the
concatenation operator. In this chapter, we continue to write applications
that use assignment and simple I/O, but we concentrate on additional
built-in data types: int,long,float, and double. These numeric types
include multiple operators that enable us to construct complex arith-
metic expressions. We show how to make expressions even more
powerful by using calls to Java’s value-returning math methods. In addi-
tion, we return to the topics of classes and methods and see how to write
a non-application class that includes a class as well as instance fields and
methods. Such classes can be stored in files separate from the applica-
tion and imported into it.


In Chapter 2,

1937
George Stibitz
develops the “Model
K,” the prototype
binary adder circuit

1937
Alan Turing
introduces the idea
of his “Turing
Machine” a
theoretical model
for a general
purpose computer

1938
Bill Hewlett and
Dave Packard begin
Hewlett-Packard in
a garage with $538
in capitol

1939
John Vincent
Atanasoff and Cliff
Berry create a
model for the
electronic-digital
computer

1943
Construction of the
ENIAC (Electronic
Numerical Integrator
and Computer)
begins at the Moore
School of Electrical
Engineering in
Philadelphia

1943
Invention of the first
all-electronic
calculating device,
the Collosus, used
by England during
World War II to
decrypt secret
messages
Free download pdf