top

  Info

  • Utilizzare la checkbox di selezione a fianco di ciascun documento per attivare le funzionalità di stampa, invio email, download nei formati disponibili del (i) record.

  Info

  • Utilizzare questo link per rimuovere la selezione effettuata.
Absolute C++ / / Walter Savitch ; contributor Kenrick Mock
Absolute C++ / / Walter Savitch ; contributor Kenrick Mock
Autore Savitch Walter J. <1943-2021, >
Edizione [Sixth edition, Global edition.]
Pubbl/distr/stampa Boston : , : Pearson, , [2016]
Descrizione fisica 1 online resource (1003 pages) : illustrations.
Disciplina 005.133
Collana Always learning
Soggetto topico C++ (Computer program language)
ISBN 1-292-09860-0
Formato Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione eng
Nota di contenuto Chapter 1. C++ basics -- Chapter 2. Flow of control -- Chapter 3. Function basics -- Chapter 4. Parameters and overloading -- Chapter 5. Arrays -- Chapter 6. Structures and classes -- Chapter 7. Constructors and other tools -- Chapter 8. Operator overloading, friends, and references -- Chapter 9. Strings -- Chapter 10. Pointers and dynamic arrays -- Chapter 11. Separate compilation and namespaces -- Chapter 12. Streams and file I/O -- Chapter 13. Recursion -- Chapter 14. Inheritance -- Chapter 15. Polymorphism and virtual functions -- Chapter 16. Templates -- Chapter 17. Linked data structures -- Chapter 18. Exception handling -- Chapter 19. Standard template library -- Chapter 20. Patterns and UML.
Record Nr. UNINA-9910154960103321
Savitch Walter J. <1943-2021, >  
Boston : , : Pearson, , [2016]
Materiale a stampa
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui
Absolute Java [[electronic resource] /] / Walter Savitch ; contributor Kenrick Mock
Absolute Java [[electronic resource] /] / Walter Savitch ; contributor Kenrick Mock
Autore Savitch Walter J. <1943-2021, >
Edizione [Sixth edition, Global edition.]
Pubbl/distr/stampa Boston : , : Pearson, , [2016]
Descrizione fisica 1 online resource (1,295 pages) : illustrations (some color), tables
Disciplina 005.133
Collana Always learning
Soggetto topico Java (Computer program language)
ISBN 1-292-10923-8
Formato Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione eng
Nota di contenuto Cover -- Title Page -- Copyright Page -- Preface -- Acknowledgments -- Brief Contents -- Contents -- Chapter 1 Getting Started -- 1.1 INTRODUCTION TO JAVA -- Origins of the Java Language -- Objects and Methods -- Applets -- A Sample Java Application Program -- Byte-Code and the Java Virtual Machine -- Class Loader -- Compiling a Java Program or Class -- Running a Java Program -- TIP: Error Messages -- 1.2 EXPRESSIONS AND ASSIGNMENT STATEMENTS -- Identifiers -- Variables -- Assignment Statements -- TIP: Initialize Variables -- More Assignment Statements -- Assignment Compatibility -- Constants -- Arithmetic Operators and Expressions -- Parentheses and Precedence Rules -- Integer and Floating-Point Division -- PITFALL: Round-Off Errors in Floating-Point Numbers -- PITFALL: Division with Whole Numbers -- Type Casting -- Increment and Decrement Operators -- 1.3 THE CLASS STRING -- String Constants and Variables -- Concatenation of Strings -- Classes -- String Methods -- Escape Sequences -- String Processing -- The Unicode Character Set -- 1.4 PROGRAM STYLE -- Naming Constants -- Java Spelling Conventions -- Comments -- Indenting -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 2 Console Input and Output -- 2.1 SCREEN OUTPUT -- System.out.println -- TIP: Different Approaches to Formatting Output -- Formatting Output with printf -- TIP: Formatting Monetary Amounts with printf -- TIP: Legacy Code -- Money Formats Using NumberFormat -- Importing Packages and Classes -- The DecimalFormat Class -- 2.2 CONSOLE INPUT USING THE SCANNER CLASS -- The Scanner Class -- PITFALL: Dealing with the Line Terminator, '\n' -- The Empty String -- TIP: Prompt for Input -- TIP: Echo Input -- Example: Self-Service Checkout -- Other Input Delimiters -- 2.3 INTRODUCTION TO FILE INPUT -- The Scanner Class for Text File Input.
Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 3 Flow of Control -- 3.1 BRANCHING MECHANISM -- if-else Statements -- Omitting the else -- Compound Statements -- TIP: Placing of Braces -- Nested Statements -- Multiway if-else Statement -- Example: State Income Tax -- The switch Statement -- PITFALL: Forgetting a break in a switch Statement -- The Conditional Operator -- 3.2 BOOLEAN EXPRESSIONS -- Simple Boolean Expressions -- PITFALL: Using = in Place of == -- PITFALL: Using == with Strings -- Lexicographic and Alphabetic Order -- Building Boolean Expressions -- PITFALL: Strings of Inequalities -- Evaluating Boolean Expressions -- TIP: Naming Boolean Variables -- Short-Circuit and Complete Evaluation -- Precedence and Associativity Rules -- 3.3 LOOPS -- while Statement and do-while Statement -- Algorithms and Pseudocode -- Example: Averaging a List of Scores -- The for Statement -- The Comma in for Statements -- TIP: Repeat N Times Loops -- PITFALL: Extra Semicolon in a for Statement -- PITFALL: Infinite Loops -- Nested Loops -- The break and continue Statements -- The exit Statement -- 3.4 DEBUGGING -- Loop Bugs -- Tracing Variables -- General Debugging Techniques -- Example: Debugging an Input Validation Loop -- Preventive Coding -- Assertion Checks -- 3.5 RANDOM NUMBER GENERATION -- The Random Object -- The Math.random() Method -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 4 Defining Classes I -- 4.1 CLASS DEFINITIONS -- Instance Variables and Methods -- More about Methods -- TIP: Any Method Can Be Used as a void Method -- Local Variables -- Blocks -- TIP: Declaring Variables in a for Statement -- Parameters of a Primitive Type -- PITFALL: Use of the Terms "Parameter" and "Argument" -- Simple Cases with Class Parameters -- The this Parameter.
Methods That Return a Boolean Value -- The Methods equals and toString -- Recursive Methods -- TIP: Testing Methods -- 4.2 INFORMATION HIDING AND ENCAPSULATION -- public and private Modifiers -- Example: Yet Another Date Class -- Accessor and Mutator Methods -- TIP: A Class Has Access to Private Members of All Objects of the Class -- TIP: Mutator Methods Can Return a Boolean Value -- Preconditions and Postconditions -- 4.3 OVERLOADING -- Rules for Overloading -- PITFALL: Overloading and Automatic Type Conversion -- PITFALL: You Cannot Overload Based on the Type Returned -- 4.4 CONSTRUCTORS -- Constructor Definitions -- TIP: You Can Invoke Another Method in a Constructor -- TIP: A Constructor Has a this Parameter -- TIP: Include a No-Argument Constructor -- Example: The Final Date Class -- Default Variable Initializations -- An Alternative Way to Initialize Instance Variables -- Example: A Pet Record Class -- The StringTokenizer Class -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 5 Defining Classes II -- 5.1 STATIC METHODS AND STATIC VARIABLES -- Static Methods -- PITFALL: Invoking a Nonstatic Method Within a Static Method -- TIP: You Can Put a main in Any Class -- Static Variables -- The Math Class -- Wrapper Classes -- Automatic Boxing and Unboxing -- Static Methods in Wrapper Classes -- PITFALL: A Wrapper Class Does Not Have a No-Argument Constructor -- 5.2 REFERENCES AND CLASS PARAMETERS -- Variables and Memory -- References -- Class Parameters -- PITFALL: Use of = and == with Variables of a Class Type -- The Constant null -- PITFALL: Null Pointer Exception -- The new Operator and Anonymous Objects -- Example: Another Approach to Keyboard Input -- TIP: Use Static Imports -- 5.3 USING AND MISUSING REFERENCES -- Example: A Person Class -- PITFALL: null Can Be an Argument to a Method -- Copy Constructors.
PITFALL: Privacy Leaks -- Mutable and Immutable Classes -- Tip: Deep Copy versus Shallow Copy -- TIP: Assume Your Coworkers Are Malicious -- 5.4 PACKAGES AND JAVADOC -- Packages and import Statements -- The Package java.lang -- Package Names and Directories -- PITFALL: Subdirectories Are Not Automatically Imported -- The Default Package -- PITFALL: Not Including the Current Directory in Your Class Path -- Specifying a Class Path When You Compile -- Name Clashes -- Introduction to javadoc -- Commenting Classes for javadoc -- Running javadoc -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 6 Arrays -- 6.1 INTRODUCTION TO ARRAYS -- Creating and Accessing Arrays -- The length Instance Variable -- TIP: Use for Loops with Arrays -- PITFALL: Array Indices Always Start with Zero -- PITFALL: Array Index Out of Bounds -- Initializing Arrays -- PITFALL: An Array of Characters Is Not a String -- 6.2 ARRAYS AND REFERENCES -- Arrays Are Objects -- PITFALL: Arrays with a Class Base Type -- Array Parameters -- PITFALL: Use of = and == with Arrays -- Arguments for the Method main -- Methods that Return an Array -- 6.3 PROGRAMMING WITH ARRAYS -- Partially Filled Arrays -- Example: A Class for Partially Filled Arrays -- TIP: Accessor Methods Need Not Simply Return Instance Variables -- The "for-each" Loop -- Methods with a Variable Number of Parameters -- Example: A String Processing Example -- Privacy Leaks with Array Instance Variables -- Example: Sorting an Array -- Enumerated Types -- TIP: Enumerated Types in switch Statements -- 6.4 MULTIDIMENSIONAL ARRAYS -- Multidimensional Array Basics -- Using the length Instance Variable -- Ragged Arrays -- Multidimensional Array Parameters and Returned Values -- Example: A Grade Book Class -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects.
Chapter 7 Inheritance -- 7.1 INHERITANCE BASICS -- Derived Classes -- Overriding a Method Definition -- Changing the Return Type of an Overridden Method -- Changing the Access Permission of an Overridden Method -- PITFALL: Overriding versus Overloading -- The super Constructor -- The this Constructor -- TIP: An Object of a Derived Class Has More than One Type -- PITFALL: The Terms Subclass and Superclass -- Example: An Enhanced StringTokenizer Class -- 7.2 ENCAPSULATION AND INHERITANCE -- PITFALL: Use of Private Instance Variables from the Base Class -- PITFALL: Private Methods Are Effectively Not Inherited -- Protected and Package Access -- PITFALL: Forgetting about the Default Package -- PITFALL: A Restriction on Protected Access -- 7.3 PROGRAMMING WITH INHERITANCE -- TIP: Static Variables Are Inherited -- TIP: "is a" versus "has a" -- Access to a Redefined Base Method -- PITFALL: You Cannot Use Multiple supers -- The Class Object -- The Right Way to Define equals -- TIP: getClass versus instanceof -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 8 Polymorphism and Abstract Classes -- 8.1 POLYMORPHISM -- Late Binding -- The final Modifier -- Example: Sales Records -- Late Binding with toString -- PITFALL: No Late Binding for Static Methods -- Downcasting and Upcasting -- PITFALL: Downcasting -- TIP: Checking to See Whether Downcasting Is Legitimate -- A First Look at the clone Method -- PITFALL: Sometimes the clone Method Return Type Is Object -- PITFALL: Limitations of Copy Constructors -- 8.2 ABSTRACT CLASSES -- Abstract Classes -- PITFALL: You Cannot Create Instances of an Abstract Class -- TIP: An Abstract Class Is a Type -- Chapter Summary -- Answers to Self-Test Exercises -- Programming Projects -- Chapter 9 Exception Handling -- 9.1 EXCEPTION HANDLING BASICS -- try-catch Mechanism.
Exception Handling with the Scanner Class.
Record Nr. UNINA-9910154764103321
Savitch Walter J. <1943-2021, >  
Boston : , : Pearson, , [2016]
Materiale a stampa
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui
Java : an introduction to problem solving & programming / / Walter Savitch ; contributor, Kenrick Mock ; global edition contributors, Arup Bhattacharjee, Soumen Mukherjee
Java : an introduction to problem solving & programming / / Walter Savitch ; contributor, Kenrick Mock ; global edition contributors, Arup Bhattacharjee, Soumen Mukherjee
Autore Savitch Walter J. <1943->
Edizione [Seventh, Global edition.]
Pubbl/distr/stampa Boston : , : Pearson, , [2015]
Descrizione fisica 1 online resource (1,024 pages) : illustrations
Disciplina 005.133
Collana Always Learning
Soggetto topico Java (Computer program language)
ISBN 1-292-06989-9
Formato Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione eng
Nota di contenuto Cover -- Preface for Instructors -- Preface for Students -- Acknowledgments -- Dependency Chart -- Brief Contents -- Contents -- Chapter 1: Introduction to Computers and Java -- 1.1 Computer Basics -- Hardware and Memory -- Programs -- Programming Languages, Compilers, and Interpreters -- Java Bytecode -- Class Loader -- 1.2 A Sip of Java -- History of the Java Language -- Applications and Applets -- A First Java Application Program -- Writing, Compiling, and Running a Java Program -- 1.3 Programming Basics -- Object-Oriented Programming -- Algorithms -- Testing and Debugging -- Software Reuse -- 1.4 Graphics Supplement -- A Sample Graphics Applet -- Size and Position of Figures -- Drawing Ovals and Circles -- Drawing Arcs -- Running an Applet -- Chapter Summary -- Chapter 2: Basic Computation -- 2.1 Variables and Expressions -- Variables -- Data Types -- Java Identifiers -- Assignment Statements -- Simple Input -- Simple Screen Output -- Constants -- Named Constants -- Assignment Compatibilities -- Type Casting -- Arithmetic Operators -- Parentheses and Precedence Rules -- Specialized Assignment Operators -- Case Study: Vending Machine Change -- Increment and Decrement Operators -- More About the Increment and Decrement Operators -- 2.2 The Class String -- String Constants and Variables -- Concatenation of Strings -- String Methods -- String Processing -- Escape Characters -- The Unicode Character Set -- 2.3 Keyboard and Screen I/O -- Screen Output -- Keyboard Input -- Other Input Delimiters (Optional) -- Formatted Output with printf (Optional) -- 2.4 Documentation and Style -- Meaningful Variable Names -- Comments -- Indentation -- Using Named Constants -- 2.5 Graphics Supplement -- Style Rules Applied to a Graphics Applet -- Creating a Java GUI Application with the JFrame Class -- Introducing the Class JOptionPane.
Reading Input as Other Numeric Types -- Programming Example: Change-Making Program with Windowing I/O -- Chapter Summary -- Chapter 3: Flow of Control: Branching -- 3.1 The if-else Statement -- The Basic if-else Statement -- Boolean Expressions -- Comparing Strings -- Nested if-else Statements -- Multibranch if-else Statements -- Programming Example: Assigning Letter Grades -- Case Study: Body Mass Index -- The Conditional Operator (Optional) -- The exit Method -- 3.2 The Type boolean -- Boolean Variables -- Precedence Rules -- Input and Output of Boolean Values -- 3.3 The switch Statement -- Enumerations -- 3.4 Graphics Supplement -- Specifying a Drawing Color -- A Dialog Box for a Yes-or-No Question -- Chapter Summary -- Chapter 4: Flow of Control: Loops -- 4.1 Java Loop Statements -- The while Statement -- The do-while Statement -- Programming Example: Bug Infestation -- Programming Example: Nested Loops -- The for Statement -- Declaring Variables Within a for Statement -- Using a Comma in a for Statement (Optional) -- The for-each Statement -- 4.2 Programming With Loops -- The Loop Body -- Initializing Statements -- Controlling the Number of Loop Iterations -- Case Study: Using a Boolean Variable to End a Loop -- Programming Example: Spending Spree -- The break Statement and continue Statement in Loops (Optional) -- Loop Bugs -- Tracing Variables -- Assertion Checks -- 4.3 Graphics Supplement -- Programming Example: A Multiface Applet -- The drawString Method -- Chapter Summary -- Chapter 5: Defining Classes and Methods -- 5.1 Class and Method Definitions -- Class Files and Separate Compilation -- Programming Example: Implementing a Dog Class -- Instance Variables -- Methods -- Defining void Methods -- Defining Methods That Return a Value -- Programming Example: First Try at Implementing a Species Class -- The Keyword this -- Local Variables.
Blocks -- Parameters of a Primitive Type -- 5.2 Information Hiding and Encapsulation -- Information Hiding -- Precondition and Postcondition Comments -- The public and private Modifiers -- Programming Example: A Demonstration of Why Instance Variables Should Be Private -- Programming Example: Another Implementation of a Class of Rectangles -- Accessor Methods and Mutator Methods -- Methods Calling Methods -- Programming Example: A Purchase Class -- Encapsulation -- Automatic Documentation with javadoc -- UML Class Diagrams -- 5.3 Objects and References -- Variables of a Class Type -- Defining an equals Method for a Class -- Programming Example: A Species Class -- Boolean-Valued Methods -- Case Study: Unit Testing -- Parameters of a Class Type -- Programming Example: Class-Type Parameters Versus Primitive-Type Parameters -- 5.4 Graphics Supplement -- The Graphics Class -- Programming Example: Multiple Faces, but with a Helping Method -- The Graphics2D Class and the Java2DTM API -- The init Method -- Adding Labels to an Applet -- Chapter Summary -- Chapter 6: More About Objects and Methods -- 6.1 Constructors -- Defining Constructors -- Calling Methods from Constructors -- Calling a Constructor from Other Constructors (Optional) -- 6.2 Static Variables and Static Methods -- Static Variables -- Static Methods -- Dividing the Task of a main Method into Subtasks -- Adding a main Method to a Class -- The Math Class -- Wrapper Classes -- 6.3 Writing Methods -- Case Study: Formatting Output -- Decomposition -- Addressing Compiler Concerns -- Testing Methods -- 6.4 Overloading -- Overloading Basics -- Overloading and Automatic Type Conversion -- Overloading and the Return Type -- Programming Example: A Class for Money -- 6.5 Information Hiding Revisited -- Privacy Leaks -- 6.6 Enumeration as a Class -- 6.7 Packages -- Packages and Importing.
Package Names and Directories -- Name Clashes -- 6.8 Graphics Supplement -- Adding Buttons -- Event-Driven Programming -- Programming Buttons -- Programming Example: A Complete Applet with Buttons -- Adding Icons -- Changing Visibility -- Programming Example: An Example of Changing Visibility -- Chapter Summary -- Chapter 7: Arrays -- 7.1 Array Basics -- Creating and Accessing Arrays -- Array Details -- The Instance Variable length -- More About Array Indices -- Initializing Arrays -- 7.2 Arrays in Classes and Methods -- Case Study: Sales Report -- Indexed Variables as Method Arguments -- Entire Arrays as Arguments to a Method -- Arguments for the Method main -- Array Assignment and Equality -- Methods That Return Arrays -- 7.3 Programming with Arrays and Classes -- Programming Example: A Specialized List Class -- Partially Filled Arrays -- 7.4 Sorting and Searching Arrays -- Selection Sort -- Other Sorting Algorithms -- Searching an Array -- 7.5 Multidimensional Arrays -- Multidimensional-Array Basics -- Multidimensional-Array Parameters and Returned Values -- Java's Representation of Multidimensional Arrays -- Ragged Arrays (Optional) -- Programming Example: Employee Time Records -- 7.6 Graphics Supplement -- Text Areas and Text Fields -- Programming Example: A Question-and-Answer Applet -- The Classes JTextArea and JTextField -- Drawing Polygons -- Chapter Summary -- Chapter 8: Inheritance, Polymorphism, and Interfaces -- 8.1 Inheritance Basics -- Derived Classes -- Overriding Method Definitions -- Overriding Versus Overloading -- The final Modifier -- Private Instance Variables and Private Methods of a Base Class -- UML Inheritance Diagrams -- 8.2 Programming with Inheritance -- Constructors in Derived Classes -- The this Method-Again -- Calling an Overridden Method -- Programming Example: A Derived Class of a Derived Class.
Another Way to Define the equals Method in Undergraduate -- Type Compatibility -- The Class Object -- A Better equals Method -- 8.3 Polymorphism -- Dynamic Binding and Inheritance -- Dynamic Binding with toString -- 8.4 Interfaces and Abstract Classes -- Class Interfaces -- Java Interfaces -- Implementing an Interface -- An Interface as a Type -- Extending an Interface -- Case Study: Character Graphics -- Case Study: The Comparable Interface -- Abstract Classes -- 8.5 Graphics Supplement -- The Class JApplet -- The Class JFrame -- Window Events and Window Listeners -- The ActionListener Interface -- What to Do Next -- Chapter Summary -- Chapter 9: Exception Handling -- 9.1 Basic Exception Handling -- Exceptions in Java -- Predefined Exception Classes -- 9.2 Defining Your Own Exception Classes -- 9.3 More About Exception Classes -- Declaring Exceptions (Passing the Buck) -- Kinds of Exceptions -- Errors -- Multiple Throws and Catches -- The finally Block -- Rethrowing an Exception (Optional) -- Case Study: A Line-Oriented Calculator -- 9.4 Graphics Supplement -- Exceptions in GUIs -- Programming Example: A JFrame GUI Using Exceptions -- Chapter Summary -- Chapter 10: Streams, File I/O, and Networking -- 10.1 An Overview of Streams and File I/O -- The Concept of a Stream -- Why Use Files for I/O? -- Text Files and Binary Files -- 10.2 Text-File I/O -- Creating a Text File -- Appending to a Text File -- Reading from a Text File -- 10.3 Techniques for any File -- The Class File -- Programming Example: Reading a File Name from the Keyboard -- Using Path Names -- Methods of the Class File -- Defining a Method to Open a Stream -- Case Study: Processing a Comma-Separated Values File -- 10.4 Basic Binary-File I/O -- Creating a Binary File -- Writing Primitive Values to a Binary File -- Writing Strings to a Binary File -- Some Details About writeUTF.
Reading from a Binary File.
Record Nr. UNINA-9910154798903321
Savitch Walter J. <1943->  
Boston : , : Pearson, , [2015]
Materiale a stampa
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui
Problem solving with C++ / / Walter J. Savitch ; contributor, Kenrick Mock ; global editions contributors, Simon Msanjila, Lupyana Muiche
Problem solving with C++ / / Walter J. Savitch ; contributor, Kenrick Mock ; global editions contributors, Simon Msanjila, Lupyana Muiche
Autore Savitch Walter J. <1943->
Edizione [Ninth edition, Global edition.]
Pubbl/distr/stampa Boston : , : Pearson, , [2015]
Descrizione fisica 1 online resource (1,088 pages) : illustrations
Disciplina 005.133
Collana Always Learning
Soggetto topico Problem solving
C++ (Computer program language)
ISBN 1-292-07157-5
Formato Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione eng
Record Nr. UNINA-9910154776103321
Savitch Walter J. <1943->  
Boston : , : Pearson, , [2015]
Materiale a stampa
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui