Java for everyone
By: Cay Horstmann
Publisher: John Wiley & Sons
Published: 2010
Place of publication: Hoboken, NJ
Language: eng
Format: Trade Paperback
Number of pages: 515
ISBN-13: 9780471791911
Notes: "Compatible with Java 5, 6 & 7."--P. 1, cover.

Includes index.

Includes bibliographical references and index.
Table of contents: title: Introduction. Computer programs -- The anatomy of a computer -- The Java programming language -- Becoming familiar with your programming environment -- Analyzing your first program -- Errors -- Algorithms -- Fundamental data types. Declaring variables -- Variable assignment -- Reading input -- Constants -- Arithmetic -- Strings -- Decisions. The if statement -- Comparing numbers and strings -- Multiple alternatives -- Nested branches -- Boolean variables and operators -- Application : input validation -- Loops. The while loop -- The for loop -- The do loop -- Application : processing sentinel values -- Common loop algorithms -- Nested loops -- Application : random numbers and simulations – Methods. Methods as black boxes -- Implementing methods -- Parameter passing -- Return values -- Methods without return values -- Stepwise refinement -- Variable scope -- Recursive methods (optional) – Arrays and array lists. Arrays -- The enhanced for loop -- Common array algorithms -- Using arrays with methods -- Two-dimensional arrays -- Array lists -- Objects and classes. Object-oriented programming -- Specifying the public interface of a class -- Instance variables -- Instance methods -- Constructors -- Testing a class -- Discovering classes -- Object references -- Static variables and methods -- Packages -- Input/Output and exception handling. Reading and writing text files -- Processing text input -- Command line arguments -- Exception handling -- Application : handling input errors -- Inheritance and interfaces. Inheritance hierarchies -- Implementing subclasses -- Overriding methods -- Polymorphism -- Object : the cosmic superclass -- Collections and maps. Interface types -- The Java collections framework -- Linked lists -- Queues and stacks -- Sets -- Maps -- Hash tables -- Binary search trees -- Graphics and event handling (web only). Frame windows -- Drawing on a component -- Ellipses, lines, text, and color -- Shape classes -- Events and event handling -- Using inner classes for listeners -- Building applications with buttons -- Using timer events for animations -- Mouse events -- Using inheritance to customize frames -- Graphical user interfaces (web only). Processing text input -- Text areas -- Layout management -- Choices -- Menus -- Exploring the swing documentation -- Recursion (web only). Triangle numbers -- Recursive helper methods -- The efficiency of recursion -- Permutations -- Mutual recursions -- Appendix A : the basic Latin and Latin-1 subsets of Unicode -- Appendix B : Java operator summary -- Appendix C : Java reserved word summary -- Appendix D : the Java library -- Appendix E : Java syntax summary -- Appendix F : html summary -- Appendix G : tool summary -- Appendix H : Javadoc summary -- Appendix I : number systems -- Appendix J : bit and shift operations -- Appendix K : UML summary -- Appendix L Java : language coding guidelines.