Java, Java, Java: Object-oriented Problem SolvingFunctional and flexible, this guide takes an objects-first approach to Java programming and problem using games and puzzles. Updated to cover Java version 1.5 features, such as generic types, enumerated types, and the Scanner class. Offers independent introductions to both a command-line interface and a graphical user interface (GUI). Features coverage of Unified Modeling Language (UML), the industry-standard, object-oriented design tool. Illustrates key aspects of Java with a collection of game and puzzle examples. Instructor and Student resources available online. For introductory computer programming students or professionals interested in learning Java. |
Contents
Using Creating and Defining | 63 |
Communicating with Objects | 103 |
Designing the User Interface | 149 |
Copyright | |
21 other sections not shown
Common terms and phrases
ActionListener actionPerformed algorithm applet appletviewer application array assignment binary binary file boolean button bytecode call stack Chapter char character class Figure client components constructor contains create declared default defined display EFFECTIVE DESIGN elements end-of-file error example exception executed handle Hello HelloWorld hierarchy implement inheritance initial inner class input instance variables integer IOException IPlayer iteration JAVA LANGUAGE JAVA LANGUAGE RULE Java program java.lang Java’s javac JFrame JPanel JTextArea JTextField keyboard KeyboardReader menu method call mutator methods node null number of sticks object object-oriented object-oriented programming off-by-one error OneRowNim OneRowNim class operator output parameter player polymorphism postconditions problem pseudocode public class public static void public String public void recursive reference Riddle SELF-STUDY EXERCISES EXERCISE server shown in Figure SOLUTION statement static void main(String structure subclass superclass text file thread toString user interface WordGuess write