Java Software Solutions: Foundations of Program Design
As the worldwide best seller for introductory programming using the Java™ programming language, Java Software Solutionsis the premiere model of text that teaches a foundation of programming techniques to foster well-designed object-oriented software. Introduction; Data and Expressions; Using Classes and Objects; Writing Classes; Conditionals and Loops; Object-Oriented Design; Arrays; Inheritance; Polymorphism; Exceptions; Recursion; Collections. For all readers interested in CS1 in Java.
Results 1-3 of 85
However, in a specific situation, we may want it to hold a simple integer value. In
these cases we need to "wrap" a primitive value into an object. A wrapper class
represents a particular primitive type. For instance, the Integer class represents a
FIGURE 3.7 Wrapper classes in the Java class library a static method called
parselnt to convert an integer that is stored in a String to its corresponding int
value. If the String object str holds the string "987", the following line of code
converts the ...
Exercises EX 6.1 Write a method called average that accepts two integer
parameters and returns their average as a floating point value. EX 6.2 Overload
the average method of Exercise 6.1 such that if three integers are provided as ...
What people are saying - Write a review
LibraryThing ReviewUser Review - bnielsen - LibraryThing
Indeholder "Preface", "Chapter 1. Computer Systems", " 1.1 Introduction", " Basic Computer Processing", " Software Categories", " Digital Computers", " Binary Numbers", " 1.2 Hardware Components ... Read full review
LibraryThing ReviewUser Review - locriian - LibraryThing
This was probably a really good textbook from the little I read of it, but I ended up not needing it for the class. Read full review
Data and Expressions
Using Classes and Objects
17 other sections not shown