Objects First with Java: A Practical Introduction Using BlueJThe book has a very clear identity. It takes a truly objects first approach to teaching problem solving using Java. These are complicated concepts so the book uses the development environment BlueJ to help the student's understanding. BlueJ has a strong emphasis on visualization and interaction techniques, and allows the students to manipulate objects and call methods as a first exercise. BlueJ is free and freely available, and has been developed specifically for teaching. The book is loaded with projects so that the student can really get a grip on actually solving problems; and it takes a "spiral approach", introducing a topic in a simple context early on, then revisiting it later in the book to deepen understanding. It also comes with a CD containing JDK, BlueJ, a BlueJ tutorial and code for all the projects. The website contains style guide for all examples, PowerPoints for lecturers and also a Solutions Manual. |
From inside the book
Results 1-3 of 23
Page 199
... exit information : In the createRoom method , the exits are defined . In the printWelcome method , the current room's exits are printed out so that the player knows where to go when the game starts . In the goRoom method the exits are ...
... exit information : In the createRoom method , the exits are defined . In the printWelcome method , the current room's exits are printed out so that the player knows where to go when the game starts . In the goRoom method the exits are ...
Page 203
... exits in the up and down direction . This has already become a lot easier . Since we now use a HashMap to store exits , storing these two additional directions will work without any change . We can also obtain the exit information via ...
... exits in the up and down direction . This has already become a lot easier . Since we now use a HashMap to store exits , storing these two additional directions will work without any change . We can also obtain the exit information via ...
Page 205
... exits are stored in a HashMap , and we can iterate over that map to describe the exits . Consequently , we replace the version of getExitString shown in Code 7.6 with the version shown in Code 7.7 . This method finds all the names for exits ...
... exits are stored in a HashMap , and we can iterate over that map to describe the exits . Consequently , we replace the version of getExitString shown in Code 7.6 with the version shown in Code 7.7 . This method finds all the names for exits ...
Contents
Understanding class definitions | 17 |
Object interaction | 52 |
Grouping objects | 81 |
Copyright | |
12 other sections not shown
Common terms and phrases
abstract class AddressBook Animal application array ArrayList autoboxing BlueJ boolean buttons chapter checked exception class diagram client ClockDisplay code duplication collection command CommandWord compiler components Concept constructor Contact Details contains CRC cards create Database debugging declared defined discussed display documentation error example executed Exercise exits field Figure filter for-each loop HashMap ImageViewer implementation inheritance inner classes input instance integer interface iterate Java javadoc look menu item method call Michael Kölling mutator methods null NumberDisplay object diagram param parameter passenger pickup print method private int problem public class public void random refactoring responsibility-driven design return type scenario server shown in Code simulation single source code statement static String subclass superclass System.out.println taxi test class text terminal ticket TicketMachine variable vehicle write