CS 113 Programming in Java
by Milan Samplewala
- Publisher
- Los Angeles Mission College
- Subjects
- Engineering
- Licence
- CC BY 4.0, as LibreTexts states it
- Who can read
- Tweens profiles and older, judged from its title and subjects
Contents
LibreTexts writes equations in TeX, and here they show as TeX; the PDF has them typeset.
- Front Matter
- TitlePage
- InfoPage
- Table of Contents
- Licensing
- 1: Java Program Design and Development
- 1.1: Introduction
- 1.2: Designing Good Programs
- 1.3: Designing a Riddle Program
- 1.4: Java Language Elements
- 1.5: Editing, Compiling, and Running a Java Program
- 1.6: From the Java Library- System and PrintStream
- 2: Objects- Defining, Creating, and Using
- 2.1: Introduction
- 2.2: Using String Objects
- 2.3: Drawing Shapes with the Graphics Object (Optional)
- 2.4: Class Definition
- 2.5: Case Study- Simulating a Two-Person Game
- 2.6: From the Java Library- java.util.Scanner
- 3: Methods- Communicating with Objects
- 3.1: Introduction
- 3.2: Passing Information to an Object
- 3.3: Constructor Methods
- 3.4: Retrieving Information from an Object
- 3.5: Passing a Value and Passing a Reference
- 3.6: Flow of Control- Control Structures
- 3.7: Testing an Improved OneRowNim
- 3.8: From the Java Library- java.lang.Object
- 3.9: Object-Oriented Design- Inheritance and Polymorphism
- 3.10: Drawing Lines and Defining Graphical Methods (Optional)
- 4: Input/Output- Designing the User Interface
- 4.1: Introduction
- 4.2: The User Interface
- 4.3: A Command-line Interface
- 4.4: A Graphical User Interface (GUI)
- 4.5: Case Study- The One Row Nim Game
- 4.6: From the Java Library- java.io.File and file input (Optional)
- 5: Java Data and Operators
- 5.1: Introduction
- 5.2: Boolean Data and Operators
- 5.3: Numeric Data and Operators
- 5.4: From the Java Library java.lang.Math
- 5.5: Numeric Processing Examples
- 5.6: From the Java Library- java.text.NumberFormat
- 5.7: Character Data and Operators
- 5.8: Example- Character Conversions
- 5.9: Problem Solving = Representation + Action
- 6: Control Structures
- 6.1: Introduction
- 6.2: Flow of Control- Repetition Structures
- 6.3: Counting Loops
- 6.4: Example- Car Loan
- 6.5: Graphics Example- Drawing a Checkerboard
- 6.6: Conditional Loops
- 6.7: Example- Computing Averages
- 6.8: Example- Data Validation
- 6.9: Principles of Loop Design
- 6.10: The switch Multiway Selection Structure
- 6.11: Object-Oriented Design- Structured Programming
- 6.12: Special Topic- What Can Be Computed?
- 7: Strings and String Processing
- 7.1: Introduction
- 7.2: String Basics
- 7.3: Finding Things Within a String
- 7.4: Example- Keyword Search
- 7.5: From the Java Library- StringBuffer
- 7.6: Retrieving Parts of Strings
- 7.7: Example- Processing Names and Passwords
- 7.8: Processing Each Character in a String
- 7.9: Comparing Strings
- 7.10: From the Java Library- StringTokenizer
- 7.11: Handling Text in a Graphics Context (Optional)
- 8: Arrays and Array Processing
- 8.1: Introduction
- 8.2: One-Dimensional Arrays
- 8.3: Simple Array Examples
- 8.4: Example- Counting Frequencies of Letters
- 8.5: Array Algorithms- Sorting
- 8.6: Array Algorithms- Searching
- 8.7: Two-Dimensional Arrays
- 8.8: Multidimensional Arrays (Optional)
- 8.9: Object-Oriented Design- Polymorphic Sorting (Optional)
- 8.10: From the Java Library- java.util.Vector
- 8.11: Case Study- An N-Player Computer Game
- 8.12: A GUI-Based Game (Optional Graphics)
- 9: Exceptions- When Things Go Wrong
- 9.1: Introduction
- 9.2: Handling Exceptional Conditions
- 9.3: Java’s Exception Hierarchy
- 9.4: Handling Exceptions Within a Program
- 9.5: Error Handling and Robust Program Design
- 9.6: Creating and Throwing Your Own Exceptions
- 9.7: From the Java Library- javax.swing.JOptionPane
- 10: Recursive Problem Solving
- 10.1: Introduction
- 10.2: Recursive Definition
- 10.3: Recursive String Methods
- 10.4: Recursive Array Processing
- 10.5: Example- Drawing (Recursive) Fractals
- 10.6: Object-Oriented Design- Tail Recursion
- 10.7: Object-Oriented Design- Recursion or Iteration?
- 10.8: Special Topic- Exploring the Mandelbrot Set
- 10.9: From the Java Library- javax.swing.JComboBox
- Back Matter
- Index
- Glossary
- Detailed Licensing
- Detailed Licensing