Absolute JavaBest-selling author Walt Savitch offers students a comprehensive introduction of the java programming language. The hallmark feature of his accessible writing style is predominate in this text, along with the needed tools and java topics for novice and experienced programmers to master the java language. In this second edition he takes full advantage of the new java 5.0 features and incorporates the new Scanner class, automatic boxing and unboxing, System.out.pintf for formatting output and enhanced for loop. There is comprehensive coverage of generic types, including how to define classes with type parameters, collection classes done as generic classes, and linked lists done with type parameters. Pedagogical features are integrated throughout including: pitfalls, programming tips, and self-test exercises and answers. This book is appropriate for introductory courses covering Java and intermediate programming courses introducing Java to students familiar with another language. |
From inside the book
Results 1-3 of 40
Walter J. Savitch. accessor methods mutator methods ACCESSOR AND MUTATOR METHODS You should always make all instance variables in a class private . However , you may sometimes need to do something with the data in a class object . The ...
... Mutator Methods Can Return a Boolean Value ✰ In the definition of the class DateFifthTry ( Display 4.9 ) , the mutator methods tested to see if the new values for instance variables were sensible values . If they were not sensible ...
... mutator method of the class Date . This is exactly what we discussed in the previous subsection . So why didn't we ... methods ! The class String contains no methods that change any of the data in a String object . At first , it may seem ...
Contents
A Sample Java Application Program | 5 |
Running a Java Program | 11 |
Chapter 1 | 19 |
Copyright | |
50 other sections not shown