
This page contains a list of errors in the source code in the book:
E. Ageenko "Object Oriented Programming with Java", University of
Joensuu, 2003.
value = Float.valueOf(data);must be
value = Float.parseFloat(data);
public class Person
for(int k = 1; k < data.length; k++) {must be
for(int k = 1; k < v.length; k++) {
abstract public class InsertionSortstatic public void sort(Person[] v) { for(int k = 1; k < size(); k++) { while((j >= 0) && (lessThan(j+1,j))) { swap(j,j+1); j--; } } }must be
public void sort() { for(int k = 1; k < size(); k++) { int j = k-1; while((j >= 0) && (lessThan(j+1,j))) { swap(j,j+1); j--; } } }
public class MyApplet extdens Appletafter the line
Frame f = new Frame("My Title");must be
f.setLayout(new GridLayout(1,1));