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 73
... write data to files is to use binary files in the way we describe here . We conclude this section with a discussion of how you can use ObjectOutput- Stream and ObjectInputStream to write and later read objects of any class you define ...
... write the string " Hello friend . " to the file connected to that stream : outputStream.writeUTF ( " Hello friend . " ) ; may You write output of different types to the same file . So , you may write a com- bination of , for example ...
... write the objects to the file and later read them from the file , then the two objects that are read will again be references to the same object . So nothing in the structure of your object data is lost when you write the objects to the ...
Contents
A Sample Java Application Program | 5 |
Running a Java Program | 11 |
Chapter 1 | 19 |
Copyright | |
50 other sections not shown