After reading this review (
link ) i found out why it didn't compile under netbeans: it uses third party packages! no wonder i couldn't compile, This book sucks
karatekid here is an example:
//Program converts fahrenheit into celsius
import TerminalIO.KeyboardReader;
public class Convert {
public static void main(String [] args) {
KeyboardReader reader = new KeyboardReader();
double fahrenheit;
double celsius;
System.out.print("Enter degrees in Fahrenheit: ");
fahrenheit = reader.readDouble();
celsius = (fahrenheit - 32) * 5.0-9.0;
System.out.print("The equivalent in Celsius is ");
System.out.println(celsius);
reader.pause();
}
}
As you can see the teminalio doesn't even exist under the STANDARD java package! Making this book useless for the AP test (I think).
Also if you think your book is lame my is TEN times as worse and is very disorganize. Anyway the book is called Fundamentals of Java by Lambert and Osborne and is the WORSE book ever. I also think that Java sucks (not all the time) and I also prefer C++ over Java. At least I going to be able to program my own cell phone games when I finish