Java Language Program Design (JAVA7)--Introduction and improvement of the directory __java7

Source: Internet
Author: User
Tags arithmetic operators array definition control characters exception handling logical operators
1th Chapter Java Language QuickStart

1.1 Introduction

1.1.1 Program and Software

1.1.2 Programming language

The popular programming language of 1.1.3

1.1.4 object oriented and process oriented

1.1.5 machine language, assembly language and advanced language

1.1.6 Interpretation and compilation

1.2Java Language Overview

The development history of 1.2.1Java language

1.2.2Java 7 Architecture

The characteristics of 1.2.3Java language

3 Versions of 1.2.4Java

The running process of 1.2.5Java program

1.3Java Operating Environment

1.3.1JDK Download

1.3.2 System Requirements

1.3.3 Install JDK

1.3.4 Configuration environment variable path

1.4 First Java Program

1.4.1 Write source code

1.4.2 compiles source files into bytecode files

1.4.3 using Java commands to run bytecode files

1.5 Writing Java programs with Eclipse

1.5.1 Download

1.5.2 Installation

1.5.3 Configuration

1.5.4 Write Java programs

Basic symbols for 1.6Java languages

Encoding used in 1.6.1Java languages

1.6.2 Numeric Constants

1.6.3 Characters Constants Quantity

1.6.4 String Constants

1.6.5 Boolean Constants

1.6.6 identifier

1.6.7 reserved word

1.6.8 operator

1.6.9 Separator

1.6.10null symbol

1.6.11void symbol

1.6.12 notes

1.7 Example: Output all kinds of basic data

Summary

2nd Chapter Java Basic Coding Ability Training

2.1 Information representation

2.1.18 Basic types of data

2.1.2 A reference type that represents a string type

2.1.3 Variable Declaration

2.1.4 Use variables to represent information (assign values to variables)

2.1.5 instance: Using variables to represent information and output

2.2 Enter various types of data

2.2.1 Enter int type of data by scanner

2.2.2 Enter other types of data by scanner

2.3 Perform various operations

2.3.1 Assignment operator

2.3.2 Arithmetic operators

2.3.3, self-subtraction operators

2.3.4 Comparison (relational) operator

2.3.5 logical operators

2.3.6-bit operator

2.3.7 shift operator

2.3.8 conditional operator

2.3.9 string concatenation operator

2.3.10 Compound assignment operator

2.4 Order Structure

2.5 Selection Structure

2.5.1 Basic Selection If...else

2.5.2 Deformation 1:if

2.5.3 deformation 2:ifelse Ifelse

2.5.4 Multiple Select Switch statements

2.5.5 Example: Calculating personal income tax

2.6 Circulation structure

2.6.1for Loop

2.6.2while loops and do While loops

2.6.3cotinue and break

2.6.4 Death Cycle

2.6.5 Death Cycle Example: Menu design of student information management system

2.6.6 instance: Finding the maximum, minimum, and average value of multiple digits

2.7 Array 1

2.7.11-D Array Definition

2.7.2 application space for an array

2.7. Access to 31-D array elements

2.7.4 array elements and traversing arrays

2.7.5 instances: Finding, reversing, sorting

2.7.6 using arrays to manage arrays: sorting, copying, finding, and populating

2.7.72-D Array

2.8 method

Definition of 2.8.1 method

Call to 2.8.2 method

2.8.3 Value and pass reference

Recursive invocation of the 2.8.4 method

2.8.5 variable Length parameter method

2.8.6 instance: Using an array to represent student information to realize student information management

3rd Chapter Object-Oriented Foundation

3.1 Object-oriented basic concepts

3.1.1 Object View

3.1.2 Type View

3.1.3 Message passing between objects

3.1.4 Abstract Process

3.2 Writing classes and creating objects

3.2.1 Use class to define classes

3.2.2 Instantiate an object using new

3.2.3 access to objects through object references

3.2.4 defines a package for a class

Access control characters for the 3.2.5 class

Access control characters for 3.2.6 members

3.2.7 Construction Method

Initialization of 3.2.8 member variables

3.2.9 Use this to access member variables and methods

3.2.10 uses this to access its own construction method

3.2.11 Accessor method

3.2.12static member variable and static initialization block

3.2.13static Member method

3.3 Basic data types and package types

3.3.1 the package type corresponding to the basic data type

3.3.2 Conversion from basic data types to package types

3.3.3 conversion from encapsulated type to base data type

Other common methods offered by 3.3.4Integer

3.4 Array 2

Comparison of 3.4.1 object arrays with basic data type arrays

3.4.2 Example: Using student array to implement student information management system

3.5String, StringBuffer and StringBuilder

3.5.1String class

3.5.2StringBuffer

3.5.3StringBuilder

Conversion between 3.5.4String and basic data types

3.6 Common Tools

3.6.1Math

3.6.2Random

3.6.3 Example: Simulation lottery

3.6.4NumberFormat and DecimalFormat

3.6.5Date and Calendar

3.6.6DateFormat and SimpleDateFormat

3.6.7MessageFormat

3.6.8system.out.printf and System.out.format

3.6.9System

3.6.10BigInteger and BigDecimal

The 4th chapter is deeply object oriented

4.1 Implementing Inheritance

4.1.1 Implementation Inheritance

4.1.2 Access control character

4.1.3 defines a member variable with the same name as the parent class

Inheritance and rewriting of 4.1.4 member methods

4.1.5 Construction method and inheritance

Initialization order of 4.1.6 subclasses, parent class members

4.2final Members

4.2.1final modifying local variables

4.2.2final Modifier member Variable

4.2.3final Cosmetic Method

4.2.4final Cosmetic Class

4.3abstract

4.3.1 abstract method

4.3.2 Abstract class

4.4 Interface

Definition of 4.4.1 Interface

4.4.2 Implementation Interface

4.4.3 Interface Inheritance Interface

Differences between 4.4.4 interfaces and abstract classes

4.5 Upward transition and coercion type conversion

4.5.1 Upward transformation

Use subclass instances in 4.5.2 method's arguments and method return values

4.5.3 interface-Oriented programming

4.5.4 coercion type conversions and classcastexception

4.5.5instanceof operator

4.6 Polymorphism

4.6.1 Dynamic Joint Series

4.6.2 polymorphism and three conditions for realizing polymorphism

4.6.3 Example: Drawing software Design

4.7Object and Class

4.7.1Object

4.7.2Class

4.8 Implementation of relationships between objects

The realization of a pair of 4.8.1 relationship

4.8.2 the realization of one-to-many and many-to-many relationship

4.8.3 Many-to-many Relationship Implementation

4.8.4 instance: Creating an integer linked list

4.9 internal class

4.9.1 internal class as a member of a class

Internal classes defined in the 4.9.2 member method

4.9.3 Anonymous Inner class

5th Chapter Coding Ability Promotion

5.1 Exception handling

5.1.1 What is exception handling

5.1.23 Kinds of exceptions

5.1.3 of non-checked abnormal handling

5.1.4 use try...catch...finally for exception handling

5.1.5trywithresources statement

5.1.6 an exception that declares a method through throws

5.1.7 custom exceptions and exceptions thrown

5.1.8 case: Abnormal handling of age

5.2 Input/output (I/O) stream

5.2.1 files by using the file class

Classification of 5.2.2 input and output streams

5.2.3FileInputStream

5.2.4FileOutputStream

5.2.5FileReader

5.2.6FileWriter

5.2.7 Using buffered Streams

5.2.8DataInputStream and DataOutputStream

5.2.9 standard input and output

5.2.10Serializable and Exernalizable

5.2.11ObjectOutputStream and ObjectInputStream

5.2.12 read file properties using the files in NiO

5.2.13 use files in NiO to access a file

5.2.14 files and folders using files in NiO

5.2.15 Traverse Folder

5.2.16 instance: Statistics Code Quantity

5.2.17 Example: Using file to store student information for student information management

5.3 Generic type

Definition of 5.3.1 Generics

The use of 5.3.2 generics

5.3.3 Complex generics

5.4 Collection Framework

5.4.1 Collection Overview

5.4.2Collection interface

5.4.3Set interface and Sortedsort interface

5.4.4List interface

5.4.5Map interface and SortedMap interface

5.4.6Iterator interface and Enumeration interface

5.4.7HashSet class

5.4.8TreeSet class

5.4.9ArrayList class

5.4.10 Example: Using ArrayList to realize student information management system

5.4.11LinkedList class

5.4.12Vector class

5.4.13Hashtable class

5.4.14HashMap class

5.4.15TreeMap class

5.4.16Properties class

5.4.17Comparable interface

5.4.18Comparator interface

5.4.19Collections

5.5 Regular Expressions

Overview of 5.5.1 Regular Expressions

5.5.2 Select characters

5.5.3 Special Mode

5.5.4 Escape character

5.5.5 Repeat number

5.5.6 of a child expression

5.5.7 Specifies the start and end of a string

5.5.8 Branch

5.5.9 Common usage examples

5.5.10Pattern and Matcher

5.6 Enumeration types

5.6.1 Definition of enumeration type

5.6.2 access to enumerated types

5.6.3 use enum type in switch

5.7Annotation Meta Comment

5.7.1 Define annotation meta annotations

5.7.2 using annotation meta annotations

5.7.3 Parsing annotation Annotations

5.8 Accessing resource files using ResourceBundle

5.8.1properties File Writing

5.8.2 Load Resource File

5.8.3 instance: Loading information from a resource file

The 6th Chapter Advanced Application

More than 6.1 threads

6.1.1 Threads and processes

How to implement multithreading in 6.1.2Java

6.1.3 The name of the thread

Priority of 6.1.4 Threads

6.1.5 Let the thread wait

6.1.6 Example: Realizing that people can talk and drive at the same time

6.1.7 Resource Synchronization

6.1.8wait and notify

6.2 Network Programming

6.2.1 Network Programming Overview

6.2.2 use URLConnection to access Web applications

6.2.3 instance: Extracting content of interest in Web pages

6.2.4Socket Communication

6.2.5 Example: Chat room

6.2.6 User Datagram Communication

6.3GUI

6.3.1Swing Quick Start

6.3.2 Container Class

6.3.3 Layout mode

6.3.4 Basic Components

6.3.5 Auxiliary class color, Font

6.3.6 Event Handling

6.3.7 Menu

6.3.8, check menu items, and pop-up menus

The use of 6.3.9 tree-shaped structure

Use of 6.3.10 tables

6.3.11 instance: Selecting a user

6.3.12 instance: Impersonation Login

6.3.13JApplet

6.3.14 Graphics

6.4 Comprehensive Examples

6.4.1 Example: Student Information Management system (GUI version)

6.4.2 Instance: Network Chat program (GUI version)

6.4.3 Example: simple Drawing Tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.