目录

  • 1 Introduction
    • 1.1 Brief intro
    • 1.2 JDK
    • 1.3 Environmental variables Settings
    • 1.4 First program
  • 2 Data and Variable
    • 2.1 Key words
    • 2.2 Comments
    • 2.3 Variable
    • 2.4 Contants
    • 2.5 Data types
    • 2.6 Data Changing
    • 2.7 Expressions
  • 3 Selection
    • 3.1 Structure
    • 3.2 IF
    • 3.3 IF  ELSE
    • 3.4 switch
    • 3.5 case study
    • 3.6 case: data judgement
    • 3.7 maximum
    • 3.8 maximum(3 numbers)
    • 3.9 case study
    • 3.10 Scores selection
    • 3.11 Switch
    • 3.12 case study
  • 4 Loop
    • 4.1 while
    • 4.2 do while
    • 4.3 for
    • 4.4 break
    • 4.5 continue
    • 4.6 Case: sum
    • 4.7 Case study
    • 4.8 exercise
    • 4.9 exercise
    • 4.10 Case: Multiplication tables
    • 4.11 Case study
    • 4.12 Case: Pyramids
  • 5 Single-Dimensional Arrays
    • 5.1 Definitions
    • 5.2 Basics
    • 5.3 Copy
    • 5.4 Case: Counting
    • 5.5 Case: Sort
    • 5.6 Multidimensional Arrays
  • 6 Methods
    • 6.1 Declaration
    • 6.2 Examples
    • 6.3 Case study
    • 6.4 Case study
    • 6.5 Calling methods
    • 6.6 Overloading
    • 6.7 Overriding
  • 7 Charaters
    • 7.1 Introduction
    • 7.2 Class for Characters
    • 7.3 Changing Characters
    • 7.4 Calling
  • 8 Object-oriented Basics
    • 8.1 Objects
    • 8.2 Class
    • 8.3 Inheritance
    • 8.4 Interfaces
    • 8.5 Package
  • 9 Class and Objects
    • 9.1 Class
    • 9.2 Objects
    • 9.3 More about class
    • 9.4 class loop
    • 9.5 Lambda expression
    • 9.6 Examples
    • 9.7 this
    • 9.8 Storage structure for Objects
    • 9.9 Visiting control
    • 9.10 static
    • 9.11 super
    • 9.12 final
    • 9.13 Type changing
    • 9.14 Object class
    • 9.15 Polymorphysim
    • 9.16 Abstract Class
    • 9.17 Common Classes
    • 9.18 Math
    • 9.19 Data和Calender
    • 9.20 Format
    • 9.21 Scanner
    • 9.22 System
  • 10 Interface and Inheritance
    • 10.1 Interface
    • 10.2 Inheritance
  • 11 Exception Handling
    • 11.1 Introduction
    • 11.2 Structure
    • 11.3 Handling methods
    • 11.4 Self-defined Exceptions
  • 12 I/O
    • 12.1 IO Introductions
    • 12.2 File
    • 12.3 Streams for bytes
    • 12.4 Streams for characters
    • 12.5 Handling
    • 12.6 Buffered Streams 1
    • 12.7 Buffered Streams 2
    • 12.8 Standard I/O
    • 12.9 Object Streams
  • 13 Sets
    • 13.1 Sets and Collection
    • 13.2 List
    • 13.3 Set
    • 13.4 Iterator及foreach
    • 13.5 Map
  • 14 Multi-threading
    • 14.1 Creating thread
    • 14.2 Thread status
    • 14.3 Deadlock and communications
    • 14.4 Synchronization
    • 14.5 Cooperations
    • 14.6 Interrupted Thread
  • 15 Networking
    • 15.1 TCP/IP and UDP
    • 15.2 IP address
    • 15.3 UDP programming
    • 15.4 Examples
    • 15.5 TCP/IP programming
    • 15.6 Examples
    • 15.7 Basics
    • 15.8 Inetaddress Class
    • 15.9 URL类和URLConnection类
  • 16 JAVA and Database
    • 16.1 MySQL
    • 16.2 JDBC
    • 16.3 JDBC Connections
    • 16.4 使用PreparedStatement发送SQL
    • 16.5 Statement与PreparedStatement异同点
  • 17 GUI
    • 17.1 Swing and JFrame
    • 17.2 GUI components
    • 17.3 Classes
    • 17.4 Classes
    • 17.5 Event handling
    • 17.6 Event-driven Programming
Inetaddress Class