Course (2-2) Java Programming Part 2
- 16 Strings, Characters and Regular Expressions
- 16.1 Introduction
- 16.2 Fundamentals of Characters and Strings
- 16.3 Class String
- 16.3.1 String Constructors
- 16.3.2 String Methods length, charAt and getChars
- 16.3.3 Comparing Strings
- 16.3.4 Locating Characters and Substrings in Strings
- 16.3.5 Extracting Substrings from Strings
- 16.3.6 Concatenating Strings
- 16.3.7 Miscellaneous String Methods
- 16.3.8 String Method valueOf
- 16.4 Class StringBuilder
- 16.4.1 StringBuilder Constructors
- 16.4.2 StringBuilder Methods length, capacity, setLength and ensureCapacity
- 16.4.3 StringBuilder Methods charAt, setCharAt, getChars and reverse
- 16.4.4 StringBuilder append Methods
- 16.4.5 StringBuilder Insertion and Deletion Methods
- 16.5 Class Character
- 16.6 Tokenizing Strings
- 16.7 Regular Expressions, Class Pattern and Class Matcher
- 16.8 Wrap-Up
- 17 Files, Streams and Object Serialization
- 17.1 Introduction
- 17.2 Files and Streams
- 17.3 Class File
- 17.4 Sequential-Access Text Files
- 17.4.1 Creating a Sequential-Access Text File
- 17.4.2 Reading Data from a Sequential-Access Text File
- 17.4.3 Case Study: A Credit-Inquiry Program
- 17.4.4 Updating Sequential-Access Files
- 17.5 Object Serialization
- 17.5.1 Creating a Sequential-Access File Using Object Serialization
- 17.5.2 Reading and Deserializing Data from a Sequential-Access File
- 17.6 Additional java.io Classes
- 17.6.1 InterfacesandClassesforByte-BasedInputandOutput
- 17.6.2 Interfaces and Classes for Character-Based Input and Output
- 17.7 Opening Files with JFileChooser
- 17.8 Wrap-Up
- 18 Recursion
- 18.1 Introduction
- 18.2 Recursion Concepts
- 18.3 Example Using Recursion: Factorials
- 18.4 Example Using Recursion: Fibonacci Series
- 18.5 Recursion and the Method-Call Stack
- 18.6 Recursion vs. Iteration
- 18.7 Towers of Hanoi
- 18.8 Fractals
- 18.9 Recursive Backtracking
- 18.10 Wrap-Up
- 19 Searching, Sorting and Big O
- 19.1 Introduction
- 19.2 Searching Algorithms
- 19.2.1 Linear Search
- 19.2.2 Binary Search
- 19.3 Sorting Algorithms
- 19.3.1 Selection Sort
- 19.3.2 Insertion Sort
- 19.3.3 Merge Sort
- 19.4 Wrap-Up
- 20 Generic Collections
- 20.1 Introduction
- 20.2 Collections Overview
- 20.3 Type-Wrapper Classes for Primitive Types
- 20.4 Autoboxing and Auto-Unboxing
- 20.5 Interface Collection and Class Collections
- 20.6 Lists
- 20.6.1 ArrayList and Iterator
- 20.6.2 LinkedList
- 20.7 Collections Methods
- 20.7.1 Method sort
- 20.7.2 Method shuffle
- 20.7.3 Methods reverse, fill, copy, max and min
- 20.7.4 Method binarySearch
- 20.7.5 Methods addAll, frequency and disjoint
- 20.8 Stack Class of Package java.util
- 20.9 Class PriorityQueue and Interface Queue
- 20.10 Sets
- 20.11 Maps
- 20.12 Properties Class
- 20.13 Synchronized Collections
- 20.14 Unmodifiable Collections
- 20.15 Abstract Implementations
- 20.16 Wrap-Up
- 21 Generic Classes and Methods
- 21.1 Introduction
- 21.2 Motivation for Generic Methods
- 21.3 Generic Methods: Implementation and Compile-Time Translation
- 21.4 Additional Compile-Time Translation Issues: Methods That Use a Type Parameter as the Return Type 880
- 21.5 Overloading Generic Methods
- 21.6 Generic Classes
- 21.7 Raw Types
- 21.8 Wildcards in Methods That Accept Type Parameters
- 21.9 Generics and Inheritance: Notes
- 21.10 Wrap-Up
- 22 Custom Generic Data Structures
- 22.1 Introduction
- 22.2 Self-Referential Classes
- 22.3 Dynamic Memory Allocation
- 22.4 Linked Lists
- 22.5 Stacks
- 22.6 Queues
- 22.7 Trees
- 22.8 Wrap-Up
- 23 Applets and Java Web Start
- 23.1 Introduction
- 23.2 Sample Applets Provided with the JDK
- 23.3 Simple Java Applet: Drawing a String
- 23.3.1 Executing WelcomeApplet in the appletviewer
- 23.3.2 Executing an Applet in a Web Browser
- 23.4 Applet Life-Cycle Methods
- 23.5 Initialization with Method init
- 23.6 Sandbox Security Model
- 23.7 Java Web Start and the Java Network Launch Protocol (JNLP)
- 23.7.1 Packaging the DrawTest Applet for Use with Java Web Start
- 23.7.2 JNLP Document for the DrawTest Applet
- 23.8 Wrap-Up
- 24 Multimedia: Applets and Applications
- 24.1 Introduction
- 24.2 Loading, Displaying and Scaling Images
- 24.3 Animating a Series of Images
- 24.4 Image Maps
- 24.5 Loading and Playing Audio Clips
- 24.6 Playing Video and Other Media with Java Media Framework
- 24.7 Wrap-Up
- 24.8 Web Resources
- 25 GUI Components: Part 2
- 25.1 Introduction
- 25.2 JSlider
- 25.3 Windows: Additional Notes
- 25.4 Using Menus with Frames
- 25.5 JPopupMenu
- 25.6 Pluggable Look-and-Feel
- 25.7 JDesktopPane and JInternalFrame
- 25.8 JTabbedPane 1026
- 25.9 Layout Managers: BoxLayout and GridBagLayout
- 25.10 Wrap-Up
- 26 Multithreading
- 26.1 Introduction
- 26.2 Thread States: Life Cycle of a Thread
- 26.3 Creating and Executing Threads with Executor Framework
- 26.4 Thread Synchronization
- 26.4.1 Unsynchronized Data Sharing
- 26.4.2 Synchronized Data Sharing—Making Operations Atomic
- 26.5 Producer/Consumer Relationship without Synchronization
- 26.6 Producer/Consumer Relationship: ArrayBlockingQueue
- 26.7 Producer/Consumer Relationship with Synchronization
- 26.8 Producer/Consumer Relationship: Bounded Buffers
- 26.9 Producer/Consumer Relationship: The Lock and Condition Interfaces
- 26.10 Concurrent Collections Overview
- 26.11 Multithreading with GUI
- 26.11.1 Performing Computations in a Worker Thread
- 26.11.2 Processing Intermediate Results with SwingWorker
- 26.12 Interfaces Callable and Future
- 26.13 Java SE 7: Fork/Join Framework
- 26.14 Wrap-Up
- 27 Networking
- 27.1 Introduction
- 27.2 Manipulating URLs
- 27.3 Reading a File on a Web Server
- 27.4 Establishing a Simple Server Using Stream Sockets
- 27.5 Establishing a Simple Client Using Stream Sockets
- 27.6 Client/Server Interaction with Stream Socket Connections
- 27.7 Datagrams: Connectionless Client/Server Interaction
- 27.8 Client/Server Tic-Tac-Toe Using a Multithreaded Server
- 27.9 [Web Bonus] Case Study: Messenger
- 27.10 Wrap-Up
- 28 Accessing Databases with JDBC
- 28.1 Introduction
- 28.2 Relational Databases
- 28.3 Relational Database Overview: The books Database
- 28.4 SQL
- 28.4.1 Basic SELECT Query
- 28.4.2 WHERE Clause
- 28.4.3 ORDER BY Clause
- 28.4.4 Merging Data from Multiple Tables: INNER JOIN
- 28.4.5 INSERT Statement
- 28.4.6 UPDATE Statement
- 28.4.7 DELETE Statement
- 28.5 Instructions for Installing MySQL and MySQL Connector/J
- 28.6 Instructions for Setting Up a MySQL User Account
- 28.7 Creating Database books in MySQL
- 28.8 Manipulating Databases with JDBC
- 28.8.1 Connecting to and Querying a Database
- 28.8.2 Querying the books Database
- 28.9 RowSet Interface
- 28.10 Java DB/Apache Derby
- 28.11 PreparedStatements
- 28.12 Stored Procedures
- 28.13 Transaction Processing
- 28.14 Wrap-Up
- 28.15 Web Resources
- 29 JavaServer™ Faces Web Apps: Part 1
- 29.1 Introduction
- 29.2 HyperText Transfer Protocol (HTTP) Transactions
- 29.3 Multitier Application Architecture
- 29.4 Your First JSF Web App
- 29.4.1 The Default index.xhtml Document: Introducing Facelets
- 29.4.2 Examining the WebTimeBean Class
- 29.4.3 Building the WebTime JSF Web App in NetBeans
- 29.5 Model-View-Controller Architecture of JSF Apps
- 29.6 Common JSF Components
- 29.7 Validation Using JSF Standard Validators
- 29.8 Session Tracking
- 29.8.1 Cookies
- 29.8.2 Session Tracking with @SessionScoped Beans
- 29.9 Wrap-Up
- 30 JavaServer™ Faces Web Apps: Part 2
- 30.1 Introduction
- 30.2 Accessing Databases in Web Apps
- 30.2.1 Setting Up the Database
- 30.2.2 @ManagedBean Class AddressBean
- 30.2.3 index.xhtml Facelets Page
- 30.2.4 addentry.xhtml Facelets Page
- 30.3 Ajax
- 30.4 Adding Ajax Functionality to the Validation App
- 30.5 Wrap-Up
- 31 Web Services
- 31.1 Introduction
- 31.2 Web Service Basics
- 31.3 Simple Object Access Protocol (SOAP)
- 31.4 Representational State Transfer (REST)
- 31.5 JavaScript Object Notation (JSON)
- 31.6 Publishing and Consuming SOAP-Based Web Services
- 31.6.1 Creating a Web Application Project and Adding a Web Service Class in NetBeans
- 31.6.2 Defining the WelcomeSOAP Web Service in NetBeans
- 31.6.3 Publishing the WelcomeSOAP Web Service from NetBeans
- 31.6.4 Testing the WelcomeSOAP Web Service with GlassFish Application Server’s Tester Web Page
- 31.6.5 Describing a Web Service with the Web Service Description Language (WSDL)
- 31.6.6 Creating a Client to Consume the WelcomeSOAP Web Service
- 31.6.7 Consuming the WelcomeSOAP Web Service
- 31.7 Publishing and Consuming REST-Based XML Web Services
- 31.7.1 Creating a REST-Based XML Web Service
- 31.7.2 Consuming a REST-Based XML Web Service
- 31.8 Publishing and Consuming REST-Based JSON Web Services
- 31.8.1 Creating a REST-Based JSON Web Service
- 31.8.2 Consuming a REST-Based JSON Web Service
- 31.9 Session Tracking in a SOAP Web Service
- 31.9.1 Creating a Blackjack Web Service
- 31.9.2 Consuming the Blackjack Web Service
- 31.10 Consuming a Database-Driven SOAP Web Service
- 31.10.1 Creating the Reservation Database
- 31.10.2 Creating a Web Application to Interact with the Reservation Service
- 31.11 Equation Generator: Returning User-Defined Types
- 31.11.1 Creating the EquationGeneratorXML Web Service
- 31.11.2 Consuming the EquationGeneratorXML Web Service
- 31.11.3 Creating the EquationGeneratorJSON Web Service
- 31.11.4 Consuming the EquationGeneratorJSON Web Service
Online LIVE Training Programming Course offered by INCAPROG ONLINE - www.incaprog.com - contacto@incaprog.com - Phone : (954) 727-3141