Wrox Home  
Search

Topic: Java

Beginning Java Programming: The Object-Oriented Approach (1118739493) cover image

Beginning Java Programming: The Object-Oriented Approach

Bart Baesens, Aimee Backiel, Seppe vanden Broucke
ISBN: 978-1-118-73949-5
Paperback
672 pages
March 2015
Other Available Formats: Wiley E-Text
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $45.00 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
27 Text Correction
Page 27 Table 2-6: Java Primitive Data Types
Short Minimum listed as:
"32,768" should be:
" -32,768"
05/01/15
74 Text Correction: Error in Code
Try It Out section:
Incorrect code currently reads:
System.out.println("The student object referred to "+
"by the variable secondStudent has the first "+
"name: "+secondStudent);
should be:
System.out.println("The student object referred to " +
"by the variable secondStudent has the first " +
"name: " + secondStudent.firstName);
05/01/15
6 179 Error in Code
(beginning of code in "Precision Rounding" Box)
Currently reads:

import java.math.BigDecimal; public class Errors {
Should Read:
Import java.math.BigDecimal;
public class BigDecimalCalculator {

6/12/2015
6 179 Error in Code
(Second block of cod in "Precision Rounding" box)
Currently Reads:
}
BigDecimal monthlyPension = retirementFund.divide(
        yearsInRetirement.multiply(new BigDecimal("12"));
System.out.println(name + " will have $" + monthlyPension
       + " per month for retirement.");
}
Should Read:
}
BigDecimal monthlyPension = retirementFund.divide (
     yearsInRetirement.multiply(new BigDecimal("12")), 2,BigDecimal.ROUND_HALF_UP);
System.out.println(name + " will have $" + monthlyPension
+ " per month for retirement.");
}
6/12/2015
6 180 Error in Code
(beginning of code in grey box)
Currently Reads:
import java.math.BigDecimal;

public class Errors {
Should Read:
Import java.math.BigDecimal;
public class BigDecimalCalculator {

6/12/2015
6 180 Error in Code
(second block of cod in grey box)
Currently Reads:
}
BigDecimal monthlyPension = retirementFund.divide( yearsInRetirement.multiply(new BigDecimal("12")); System.out.println(name + " will have $" + monthlyPension + " per month for retirement."); }
Should Read:
}
BigDecimal monthlyPension = retirementFund.divide ( yearsInRetirement.multiply(new BigDecimal("12")), 2, BigDecimal.ROUND_HALF_UP); System.out.println(name + " will have $" + monthlyPension + " per month for retirement.");
}
6/12/2015
254 Text Correction
Pages 254-255
In step 4 of the Try It Out (Title: Try It Out ? Implementing Interfaces), there is a code snippet, please add the following text after the snippet (before step 5):
You might notice that Eclipse doesn?t recognize IllegalDeposit or IllegalWithdrawal. These exceptions haven?t been defined yet. You could use the standard exception types you saw in the previous chapter, such as IllegalArgumentException. In other cases, you might want to define your own Exception for the specific situation. If you double click on the error in Eclipse, you can select ?Create class ?IllegalDeposit?? to create your own class called IllegalDeposit which extends the class Exception. You can also create this class yourself, as you always have, and just make sure it extends Exception.
05/01/15
8 277 Error in Code
In step 2 in the code:
Currently reads:
Reader in
Should be:
BufferedReader in
6/2/2015
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free