Home
»
Java Book
»
Language Basics
»
Java Book
Chapter
1.
Language Basics
2.
Class
3.
Development
4.
Collections
5.
File Stream
6.
Reflection
7.
Reference
Full List
1.
Language Basics
1. 1.
Your First Java Program
1. 1. 1.
Create your first Java program
1. 1. 2.
A Closer Look at the Example.java
1. 1. 3.
A Short Program with a variable
1. 1. 4.
Define more than one variable with comma
1. 1. 5.
Using Blocks of Code
1. 1. 6.
Keywords and Identifiers
1. 1. 7.
Using identifiers
1. 1. 8.
Comments
1. 2.
Java Simple Data Types
1. 2. 1.
Primitive data types in Java
1. 2. 2.
Integer Type Family
1. 2. 2. 1.
Integer types
1. 2. 2. 2.
Integer Decimal(base ten) Literals
1. 2. 2. 3.
Octal (base eight) integer literals
1. 2. 2. 4.
hexadecimal (base 16) integer literals.
1. 2. 2. 5.
byte type
1. 2. 2. 6.
short type
1. 2. 2. 7.
int type
1. 2. 2. 8.
long type
1. 2. 2. 9.
long literal
1. 2. 3.
Floating Point Types
1. 2. 3. 1.
float and double
1. 2. 3. 2.
float type
1. 2. 3. 3.
float type literal
1. 2. 3. 4.
double type
1. 2. 3. 5.
Double Floating-Point Literals
1. 2. 4.
Character
1. 2. 4. 1.
Using Characters
1. 2. 4. 2.
Using char value as integer
1. 2. 4. 3.
Character Literals
1. 2. 4. 4.
Escape sequences for Java char type
1. 2. 5.
Boolean
1. 2. 5. 1.
Using Booleans
1. 2. 5. 2.
Boolean Literals
1. 2. 6.
Array
1. 2. 6. 1.
Introduction to Arrays
1. 2. 6. 2.
Arrays can be initialized when they are declared
1. 2. 6. 3.
Multidimensional Arrays
1. 2. 6. 4.
Jagged array
1. 2. 6. 5.
Initialize multidimensional arrays
1. 2. 6. 6.
Alternative Array Declaration Syntax
1. 2. 6. 7.
Arrays length
1. 2. 6. 8.
Calculate Average value of Array elements
1. 2. 6. 9.
Create Fibonacci Series
1. 2. 7.
Data Type Casting
1. 2. 7. 1.
Type Conversion and Casting
1. 2. 7. 2.
The numeric types are not compatible with char or boolean
1. 2. 7. 3.
Casting Incompatible Types
1. 2. 7. 4.
Automatic Type Promotion in Expressions
1. 2. 7. 5.
The Type Promotion Rules
1. 3.
Operators
1. 3. 1.
Operators
1. 3. 2.
Arithmetic Operators
1. 3. 2. 1.
The Basic Arithmetic Operators
1. 3. 2. 2.
Calculate Rectangle Area with it's length and width.
1. 3. 2. 3.
Calculate Rectangle Perimeter using it's length and width.
1. 3. 2. 4.
Use Java arithmetic assignment operators: +=, -=, *= and /=.
1. 3. 2. 5.
The Modulus Operator
1. 3. 2. 6.
Arithmetic Assignment Operators
1. 3. 2. 7.
Increment and Decrement Operators
1. 3. 3.
Logical Operators
1. 3. 3. 1.
Relational Operators
1. 3. 3. 2.
The outcome of a relational operator is a boolean value.
1. 3. 3. 3.
Boolean Logical Operators
1. 3. 3. 4.
Short-Circuit Logical Operators
1. 3. 4.
The ? Operator
1. 3. 5.
Bitwise Operators
1. 3. 5. 1.
The Bitwise Logical Operators
1. 3. 5. 2.
Using the Bitwise Logical Operators
1. 3. 5. 3.
The Left Shift
1. 3. 5. 4.
The Right Shift
1. 3. 5. 5.
The Unsigned Right Shift
1. 3. 5. 6.
Bitwise Operator Assignments
1. 3. 6.
Operator Precedence
1. 4.
Variables and Statements
1. 4. 1.
The variable stores value in a Java program
1. 4. 2.
Using The Assignment Operator
1. 4. 3.
Dynamic Initialization
1. 4. 4.
The Scope and Lifetime of Variables
1. 5.
Flow Control Statement
1. 5. 1.
If statement
1. 5. 1. 1.
Simplest if statement
1. 5. 1. 2.
Using a boolean value to control the if statement
1. 5. 1. 3.
If else statement
1. 5. 1. 4.
Nested if statements
1. 5. 1. 5.
The if-else-if Ladder
1. 5. 2.
Switch statement
1. 5. 2. 1.
switch statement syntax
1. 5. 2. 2.
The break statement is optional
1. 5. 2. 3.
Nested switch Statements
1. 5. 3.
While statement
1. 5. 3. 1.
Using while loop
1. 5. 4.
Do while statement
1. 5. 4. 1.
Using do-while statement
1. 5. 5.
For statement
1. 5. 5. 1.
for Loop syntax
1. 5. 5. 2.
Using the Comma
1. 5. 5. 3.
For Loop Variations
1. 5. 5. 4.
Declare multiple variables in for loop Example
1. 5. 5. 5.
Nested for Loops
1. 5. 5. 6.
Enhanced for loop
1. 5. 6.
Break statement
1. 5. 6. 1.
Using break to Exit a Loop
1. 5. 6. 2.
Using labeled break as a Form of Goto
1. 5. 7.
Continue statement
1. 5. 7. 1.
Using continue
1. 5. 7. 2.
Using continue with a label
1. 5. 8.
Return statement
1. 5. 8. 1.
The return statement is used to return from a method.
2.
Class
2. 1.
Class Creation
2. 1. 1.
Introducing Classes
2. 1. 2.
A Simple Class
2. 1. 3.
A Closer Look at new
2. 1. 4.
Method
2. 1. 4. 1.
Syntax for Method Creation
2. 1. 4. 2.
Recursion
2. 1. 4. 3.
Method with Parameters
2. 1. 4. 4.
Variables and Initialization
2. 1. 4. 5.
Pass-by-value vs Pass-by-reference
2. 1. 4. 6.
What is Methods Overloading
2. 1. 4. 7.
The main() Method
2. 1. 4. 8.
Subclasses and Method Privacy
2. 1. 4. 9.
Using Command-Line Arguments with main method
2. 1. 5.
Constructors
2. 1. 5. 1.
Using Constructors
2. 1. 5. 2.
Overloading Constructors
2. 1. 6.
this Keyword
2. 1. 7.
A Demo Class
2. 1. 8.
The Person class: another demo
2. 1. 9.
Understanding static
2. 2.
finalize Method
2. 2. 1.
Garbage Collection
2. 3.
Inner Classes
2. 3. 1.
Nested and Inner Classes
2. 4.
Inheritance
2. 4. 1.
Inheritance Basics
2. 4. 2.
When Constructors Are Called
2. 4. 3.
Using super keyword
2. 4. 4.
Method Overriding
2. 4. 4. 1.
What is Method Overriding
2. 4. 4. 2.
super and overridden method
2. 4. 4. 3.
Method overriding vs method overload
2. 4. 4. 4.
Dynamic Method Dispatch
2. 4. 5.
final variables
2. 5.
Abstract Classes
2. 5. 1.
What are Abstract Classes
2. 6.
Object class
2. 6. 1.
The Object Class
2. 6. 2.
Using clone( ) and the Cloneable Interface
2. 7.
Package
2. 7. 1.
What is a Java Package
2. 7. 2.
Importing Packages
2. 7. 3.
Source Files
2. 8.
Access Control
2. 8. 1.
Access Control
2. 8. 2.
Member Access and Inheritance
2. 8. 3.
Class Member Access Protection and Package
2. 8. 4.
Modifiers and Features
2. 9.
Interface
2. 9. 1.
What is a Java Interface
2. 9. 2.
Implementing Interfaces
2. 9. 3.
Accessing Implementations Through Interface References
2. 9. 4.
Partial interface Implementations
2. 9. 5.
Variables in Interfaces
2. 9. 6.
Interfaces Can Be Extended
2. 10.
transient volatile
2. 10. 1.
The transient and volatile Modifiers
2. 11.
instanceof
2. 11. 1.
Using instanceof
3.
Development
3. 1.
Numbers
3. 1. 1.
Number class
3. 1. 2.
Byte
3. 1. 2. 1.
Byte class
3. 1. 2. 2.
Find out byte's max value, min value and size
3. 1. 2. 3.
Create Byte object with its constructor
3. 1. 2. 4.
Convert Byte to byte, double, float, int, long and short
3. 1. 2. 5.
Decode a string to a byte
3. 1. 2. 6.
Byte class defines static methods to convert string value to byte value.
3. 1. 2. 7.
Convert byte value to string value
3. 1. 2. 8.
Compare two byte values
3. 1. 3.
Short
3. 1. 3. 1.
Short class
3. 1. 3. 2.
Find out the min value, max value and size of Short types
3. 1. 3. 3.
Create Short object with its constructor
3. 1. 3. 4.
Convert Short to byte, double, float, int, long and short
3. 1. 3. 5.
Decode a string to short value
3. 1. 3. 6.
Convert string to a short value
3. 1. 3. 7.
Reverse the bytes in a short
3. 1. 3. 8.
Convert short value to string
3. 1. 3. 9.
Compare two short values
3. 1. 4.
Float
3. 1. 4. 1.
Float class
3. 1. 4. 2.
Find out the Maximum value and Minimum value a float type can have
3. 1. 4. 3.
Create a Float object
3. 1. 4. 4.
Convert Float to byte, double, float, int, long and short
3. 1. 4. 5.
Compare two float objects
3. 1. 4. 6.
Infinite and Not A Number
3. 1. 4. 7.
Convert float value to Hex String value
3. 1. 4. 8.
Convert float value to String value
3. 1. 4. 9.
Convert string value to float value
3. 1. 4. 10.
Bit oriented
3. 1. 5.
Double
3. 1. 5. 1.
Double class
3. 1. 5. 2.
Constants in Double class
3. 1. 5. 3.
Double class Constructor
3. 1. 5. 4.
Return double value as byte, double, float, int, long, short
3. 1. 5. 5.
Compare two double values
3. 1. 5. 6.
Is a double value an infinite large value, or it is not a number.
3. 1. 5. 7.
Convert string value to double
3. 1. 5. 8.
Convert double value from string
3. 1. 5. 9.
Get the hexadecimal string representation
3. 1. 5. 10.
Bit oriented
3. 1. 6.
Long
3. 1. 6. 1.
Long class
3. 1. 6. 2.
Constants value from Long class
3. 1. 6. 3.
Constructors from Long
3. 1. 6. 4.
Convert long value to byte, double, float, int, long, short
3. 1. 6. 5.
Decode a string to create long value
3. 1. 6. 6.
Get the long value from a system property
3. 1. 6. 7.
Compare two long values
3. 1. 6. 8.
Parse long value from string
3. 1. 6. 9.
Convert long value to binary, hex and octal format strings
3. 1. 6. 10.
Convert long value to string
3. 1. 6. 11.
Get the sign of the long value
3. 1. 6. 12.
Get the number of zero bits preceding and following
3. 1. 6. 13.
Reverse and rotate a long value
3. 1. 7.
Integer
3. 1. 7. 1.
Integer class
3. 1. 7. 2.
Max, min value of an integer type variable
3. 1. 7. 3.
Create Integer using its constructors
3. 1. 7. 4.
Return an integer value as byte, double, float, int, long and short
3. 1. 7. 5.
Compare two integer values
3. 1. 7. 6.
Decode a string and return an integer value
3. 1. 7. 7.
Convert string to integer
3. 1. 7. 8.
Convert integer to string
3. 1. 7. 9.
Reverse and rotate the integer in binary format
3. 1. 7. 10.
Bit oriented operation
3. 1. 7. 11.
Return system property as integer
3. 1. 7. 12.
Get the leading and trailing zeros
3. 1. 7. 13.
Get the sign of an Integer
3. 1. 7. 14.
Convert integer to binary, hexdecimal and octal format
3. 1. 8.
BigInteger
3. 1. 8. 1.
BigInteger class
3. 1. 9.
BigDecimal
3. 1. 9. 1.
BigDecimal class
3. 1. 9. 2.
Constants for One, Ten and Zero
3. 1. 9. 3.
Rounding mode
3. 1. 9. 4.
Create BigDecimals
3. 1. 9. 5.
Methods used to do calculation
3. 1. 9. 6.
Convert BigDecimal to primitive data types
3. 1. 9. 7.
Compare two BigDecimal
3. 1. 9. 8.
Move decimal point
3. 1. 9. 9.
Scale and precision
3. 1. 9. 10.
Convert BigDecimal to String
3. 1. 9. 11.
Remove the trailing zeros
3. 1. 9. 12.
Convert double and long to BigDecimal
3. 1. 10.
Currency
3. 1. 10. 1.
Currency class
3. 2.
Boolean
3. 2. 1.
Boolean class
3. 2. 2.
Get boolean value from constants in Boolean class
3. 2. 3.
Convert to primitive boolean value
3. 2. 4.
Use Boolean value constructors
3. 2. 5.
Compare two boolean values
3. 2. 6.
Get system property in boolean value
3. 2. 7.
Convert string to boolean
3. 2. 8.
Convert boolean to string
3. 3.
Character String
3. 3. 1.
Character
3. 3. 1. 1.
Character class
3. 3. 1. 2.
Create a character object from char value
3. 3. 1. 3.
Get char value from Character object
3. 3. 1. 4.
Check the character type
3. 3. 1. 5.
Get the char type from char value
3. 3. 1. 6.
Change character case
3. 3. 1. 7.
Compare two characters
3. 3. 1. 8.
Convert character to String
3. 3. 1. 9.
Get the numeric value for a char
3. 3. 2.
String
3. 3. 2. 1.
String class
3. 3. 2. 2.
String Literals
3. 3. 2. 3.
Exploring the String objects
3. 3. 2. 4.
String Concatenation
3. 3. 2. 5.
String Conversion and toString( )
3. 3. 2. 6.
Predefined comparator for string
3. 3. 2. 7.
Create string objects
3. 3. 2. 8.
Get a single char by index
3. 3. 2. 9.
Compare two string value
3. 3. 2. 10.
equals( ) vs ==
3. 3. 2. 11.
Search a sub string inside a string
3. 3. 2. 12.
Format a string
3. 3. 2. 13.
Trim, concat and intern a string
3. 3. 2. 14.
Get byte array from string
3. 3. 2. 15.
Get char array from string
3. 3. 2. 16.
Check string length and if it is empty
3. 3. 2. 17.
Match or replace a string
3. 3. 2. 18.
Get sub string from a string
3. 3. 2. 19.
Convert string case
3. 3. 2. 20.
Convert boolean, char, double, float,int,long,object to String
3. 3. 2. 21.
Arrays of strings
3. 3. 3.
StringBuffer
3. 3. 3. 1.
StringBuffer class
3. 3. 3. 2.
Create StringBuffer object
3. 3. 3. 3.
Append data to the end of a StringBuffer
3. 3. 3. 4.
Delete or replace or reverse a StringBuffer
3. 3. 3. 5.
Capacity and length
3. 3. 3. 6.
Char index
3. 3. 3. 7.
Convert StringBuffer to String
3. 3. 4.
StringBuilder
3. 3. 4. 1.
StringBuilder class
3. 3. 4. 2.
Create StringBuilder object
3. 3. 4. 3.
Append and insert value to StringBuilder
3. 3. 4. 4.
Capacity and length
3. 3. 4. 5.
Search sub string
3. 3. 4. 6.
Chars in StringBuilder
3. 3. 4. 7.
Delete and replace and reverse
3. 3. 4. 8.
Get Sub string from StringBuilder
3. 3. 4. 9.
Convert StringBuilder to String
3. 4.
Date Calendar
3. 4. 1.
Date
3. 4. 1. 1.
Date class
3. 4. 1. 2.
Create Date object
3. 4. 1. 3.
Compare two Date value
3. 4. 1. 4.
Convert date value to long value in milliseconds
3. 4. 1. 5.
Convert Date value to String
3. 4. 2.
Calendar
3. 4. 2. 1.
Calendar class
3. 4. 2. 2.
Constants value in Calendar
3. 4. 2. 3.
Create new Calendar instance
3. 4. 2. 4.
Get field value from Calendar
3. 4. 2. 5.
Clear a field or all fields
3. 4. 2. 6.
Compare two Calendar values
3. 4. 2. 7.
Calendar and display name
3. 4. 2. 8.
Is lenient
3. 4. 2. 9.
Add/set value to a field and get new calendar value
3. 4. 2. 10.
Convert Calendar value to string value
3. 4. 3.
GregorianCalendar
3. 4. 3. 1.
GregorianCalendar class
3. 4. 4.
Time Zone
3. 4. 4. 1.
TimeZone class
3. 4. 4. 2.
Create TimeZone
3. 4. 4. 3.
Get availablve timezone ids
3. 4. 4. 4.
Get display name for a timezone
3. 4. 4. 5.
Get daylight saving
3. 4. 4. 6.
Get timezone id
3. 4. 5.
Date Format
3. 4. 5. 1.
DataFormat class
3. 4. 5. 1. 1.
DateFormat class Introduction
3. 4. 5. 1. 2.
Create new DateFormat instance
3. 4. 5. 1. 3.
Constants from DateFormat
3. 4. 5. 1. 4.
Format a date
3. 4. 5. 1. 5.
Get all locales
3. 4. 5. 1. 6.
Parse string to get Date
3. 4. 5. 2.
SimpleDataFormat class
3. 4. 5. 2. 1.
SimpleDateFormat class introduction
3. 4. 5. 2. 2.
Create SimpleDateFormat and format a date
3. 4. 5. 2. 3.
Add AM PM to time format using SimpleDateFormat
3. 4. 5. 2. 4.
Use various format
3. 4. 5. 2. 5.
Convert date string from one format to another format using SimpleDateFormat
3. 5.
Math
3. 5. 1.
Math class
3. 5. 2.
Constant E and PI
3. 5. 3.
Get the absolute value
3. 5. 4.
sin, cos, tan: Trigonometric functions
3. 5. 5.
Cube root and square root
3. 5. 6.
Ceilling and flooring value
3. 5. 7.
Copy sign
3. 5. 8.
Raise the power
3. 5. 9.
Get exponent
3. 5. 10.
sqrt(x2 +y2)
3. 5. 11.
IEEE remainder
3. 5. 12.
logarithm
3. 5. 13.
Max, min value
3. 5. 14.
Next value
3. 5. 15.
Random
3. 5. 16.
Round to int to double
3. 5. 17.
Round a value to integer
3. 5. 18.
value * 2^ scaleFactor
3. 5. 19.
Get the sign
3. 5. 20.
Degree to Radian, and Radian to Degree
3. 5. 21.
Returns the size of an ulp of the argument
3. 6.
System
3. 6. 1.
System class
3. 6. 2.
Standard Stream
3. 6. 3.
Copy array
3. 6. 4.
Get/set system property
3. 6. 5.
Get the system environment
3. 6. 6.
Current system time
3. 7.
Runtime
3. 7. 1.
Runtime class
3. 7. 2.
Get the instance of a runtime
3. 7. 3.
Get the memory in your Java virtual machine
3. 7. 4.
Shut down hook
3. 7. 5.
Get the available processor
3. 7. 6.
Exit and halt Java virtual machine
3. 7. 7.
Run garbage collector and finalization methods
3. 7. 8.
Execuate a system command
3. 8.
ProcessBuilder
3. 8. 1.
ProcessBuilder class
3. 8. 2.
Create ProcessBuilder
3. 8. 3.
Get/set the working directory
3. 8. 4.
Get the environment variables
3. 8. 5.
Start a new process
4.
Collections
4. 1.
Introduction
4. 1. 1.
The Interfaces from Collection framework
4. 2.
Collection
4. 2. 1.
Collection interface
4. 2. 2.
Add elements to a collection
4. 2. 3.
Is it contained in the collection
4. 2. 4.
Compare two collections
4. 2. 5.
Remove elements from a collection
4. 2. 6.
Convert collection to Array
4. 2. 7.
Get the size of a Collection
4. 2. 8.
Is a collection empty
4. 2. 9.
Clear a collection
4. 2. 10.
Get the iterator() from a collection
4. 3.
List
4. 3. 1.
List
4. 3. 1. 1.
List interface
4. 3. 1. 2.
Add element to List
4. 3. 1. 3.
Clear a List
4. 3. 1. 4.
Does it contain certain element
4. 3. 1. 5.
Compare two Lists
4. 3. 1. 6.
Get the element index
4. 3. 1. 7.
Get Iterator from a List
4. 3. 1. 8.
Remove element from List
4. 3. 1. 9.
Get/set element
4. 3. 1. 10.
List size and empty flag
4. 3. 1. 11.
Get the sub list from a list
4. 3. 1. 12.
Convert List to Array
4. 3. 2.
ArrayList
4. 3. 2. 1.
ArrayList Class
4. 3. 2. 2.
Create ArrayList object
4. 3. 2. 3.
Add to ArrayList
4. 3. 2. 4.
Clear an ArrayList
4. 3. 2. 5.
Shallow copy of current ArrayList
4. 3. 2. 6.
If contain a certain object
4. 3. 2. 7.
Increases the capacity of an ArrayList
4. 3. 2. 8.
Get/Replace element by index
4. 3. 2. 9.
Get object for index
4. 3. 2. 10.
Remove from ArrayList
4. 3. 2. 11.
Get the size and trim to size
4. 3. 2. 12.
If ArrayList is empty
4. 3. 2. 13.
Convert ArrayList to array
4. 3. 3.
LinkedList
4. 3. 3. 1.
LinkedList class
4. 3. 3. 2.
Create LinkedList
4. 3. 3. 3.
Add element to LinkedList
4. 3. 3. 4.
Remove all elements from LinkedList
4. 3. 3. 5.
Shallow copy of a LinkedList
4. 3. 3. 6.
If contain a certain element
4. 3. 3. 7.
Get iterator from LinkedList
4. 3. 3. 8.
Peek the element
4. 3. 3. 9.
Get the element from LinkedList
4. 3. 3. 10.
Get the index of an element
4. 3. 3. 11.
Poll, pop and push element to a LinkedList
4. 3. 3. 12.
Remove element from a LinkedList
4. 3. 3. 13.
Replace the element at the position
4. 3. 3. 14.
Get the size of a LinkedList
4. 3. 3. 15.
Convert LinkedList to Array
4. 3. 4.
Vector
4. 3. 4. 1.
Vector class
4. 3. 4. 2.
Create Vector objects
4. 3. 4. 3.
Add elements to this vector
4. 3. 4. 4.
Size and capacity
4. 3. 4. 5.
Remove all elements from a vector
4. 3. 4. 6.
Clone a vector
4. 3. 4. 7.
Does it contain a certain element
4. 3. 4. 8.
Copy elements in vector to an array
4. 3. 4. 9.
Get Enumeration from this vector
4. 3. 4. 10.
Compare two vectors
4. 3. 4. 11.
Get element from vector
4. 3. 4. 12.
Is vector empty
4. 3. 4. 13.
Get element index
4. 3. 4. 14.
Remove element from a vector
4. 3. 4. 15.
Retain elements collection c has
4. 3. 4. 16.
Replace element in a vector
4. 3. 4. 17.
Get a sub list from a list
4. 3. 4. 18.
Convert Vector to Array
4. 4.
Set
4. 4. 1.
HashSet
4. 4. 1. 1.
HashSet class
4. 4. 1. 2.
Add element to hash set
4. 4. 1. 3.
Clear a hash set
4. 4. 1. 4.
Clone a hash set
4. 4. 1. 5.
If a hash set contain a certain element
4. 4. 1. 6.
Is this set containing a certain element
4. 4. 1. 7.
Get an iterator from a hash set
4. 4. 1. 8.
Remove an element from hash set
4. 4. 1. 9.
Get the size of a hash set
4. 4. 2.
TreeSet
4. 4. 2. 1.
TreeSet class
4. 4. 2. 2.
Create TreeSet objects
4. 4. 2. 3.
Add elements to a TreeSet
4. 4. 2. 4.
Get the least and greatest element in this TreeSet
4. 4. 2. 5.
Clear a TreeSet
4. 4. 2. 6.
Clone a TreeSet
4. 4. 2. 7.
Get the comparator used by this TreeSet
4. 4. 2. 8.
If this TreeSet contains a certain element
4. 4. 2. 9.
Get the descending iterator and descending set
4. 4. 2. 10.
The first and last element in this TreeSet
4. 4. 2. 11.
Get the head set and tail set
4. 4. 2. 12.
Is this TreeSet empty
4. 4. 2. 13.
Get an iterator over the elements in this set in ascending order
4. 4. 2. 14.
Get and remove first and last element in this tree
4. 4. 2. 15.
Remove element from TreeSet
4. 4. 2. 16.
Get the size of this TreeSet
4. 4. 2. 17.
Get a subset from this TreeSet
4. 4. 3.
LinkedHashSet
4. 4. 3. 1.
LinkedHashSet class
4. 4. 3. 2.
Check if an element exists in LinkedHashSet using contains method
4. 4. 3. 3.
Copy all elements of LinkedHashSet to an Object Array
4. 4. 4.
EnumSet
4. 5.
Collections
4. 5. 1.
Collections
4. 5. 2.
Get empty collection from Collections
4. 5. 3.
Do binary search
4. 5. 4.
Add to a collection
4. 5. 5.
Check collections
4. 5. 6.
Copy value to a List
4. 5. 7.
Check for common elements
4. 5. 8.
Get Enumeration from collection, create list from Enumeration
4. 5. 9.
Fill a list
4. 5. 10.
Check for frequency
4. 5. 11.
Get the index of sub list
4. 5. 12.
Get the max and min value from a Collection
4. 5. 13.
Fill n Copy object to a list
4. 5. 14.
Create set from a map
4. 5. 15.
Replace value in a list
4. 5. 16.
Reverse a list
4. 5. 17.
Get comparator in reverse order
4. 5. 18.
Rotate and shuffle a list
4. 5. 19.
Create singleton
4. 5. 20.
Sort a list
4. 5. 21.
Swap element in a list
4. 5. 22.
Get a synchronized collection
4. 5. 23.
Return an unmodifiable view of collections
4. 6.
Arrays
4. 6. 1.
Arrays
4. 6. 2.
Convert array to list
4. 6. 3.
Binary search an Array
4. 6. 4.
Copy value to an Array
4. 6. 5.
Deep equals
4. 6. 6.
Deep hash code
4. 6. 7.
Deep to string
4. 6. 8.
Compare two arrays
4. 6. 9.
Fill value to array
4. 6. 10.
Get the hash code for array
4. 6. 11.
Sort an array
4. 6. 12.
Convert array to string
4. 7.
Iterable
4. 7. 1.
Iterable
4. 8.
Deque
4. 8. 1.
Deque
4. 9.
Queue
4. 9. 1.
Queue
4. 10.
Comparable
4. 10. 1.
Comparable
4. 11.
Stack
4. 11. 1.
Stack
5.
File Stream
5. 1.
File
5. 1. 1.
File
5. 1. 2.
Constants from File class
5. 1. 3.
Create file object
5. 1. 4.
Is it executable, readable or writable
5. 1. 5.
Compare two file path
5. 1. 6.
Create a file
5. 1. 7.
Delete a file
5. 1. 8.
Is it a file or a directory
5. 1. 9.
Whether the file or directory denoted by this abstract pathname exists
5. 1. 10.
Whether this abstract pathname is absolute
5. 1. 11.
Is this file hidden
5. 1. 12.
Get the file last modified time
5. 1. 13.
Get the file size
5. 1. 14.
Get file path and name
5. 1. 15.
Get free space, total space, usable space
5. 1. 16.
Get parent file
5. 1. 17.
Return file in a directory
5. 1. 18.
The the file system roots
5. 1. 19.
Create new directories
5. 1. 20.
Rename file
5. 1. 21.
Change to executable, readable, writable
5. 1. 22.
Change last-modified time
5. 1. 23.
Get string representation of a file location
5. 1. 24.
Convert file location to URI and URL
5. 2.
Stream for Input
5. 2. 1.
InputStream
5. 2. 2.
FileInputStream
5. 2. 2. 1.
FileInputStream class
5. 2. 2. 2.
Skip n bytes while reading the file using FileInputStream
5. 2. 2. 3.
Use FileInputStream and FileOutputStream to copy a file
5. 2. 3.
ByteArrayInputStream
5. 2. 3. 1.
ByteArrayInputStream class
5. 2. 4.
ObjectInputStream
5. 2. 4. 1.
ObjectInputStream class
5. 2. 5.
SequenceInputStream
5. 2. 5. 1.
SequenceInputStream class
5. 2. 6.
BufferedInputStream
5. 2. 6. 1.
BufferedInputStream class
5. 3.
Stream for Output
5. 3. 1.
OutputStream
5. 3. 2.
FileOutputStream
5. 3. 2. 1.
FileOutputStream class
5. 3. 3.
ByteArrayOutputStream
5. 3. 3. 1.
ByteArrayOutputStream class
5. 3. 4.
ObjectOutputStream
5. 3. 4. 1.
ObjectOutputStream class
5. 3. 5.
BufferedOutputStream
5. 3. 5. 1.
BufferedOutputStream class
5. 3. 6.
DataOutputStream
5. 3. 6. 1.
DataOutputStream class
5. 4.
Reader for Input
5. 4. 1.
Reader
5. 4. 2.
BufferedReader
5. 4. 2. 1.
BufferedReader class
5. 4. 3.
CharArrayReader
5. 4. 3. 1.
CharArrayReader class
5. 4. 4.
InputStreamReader
5. 4. 4. 1.
InputStreamReader class
5. 4. 5.
StringReader
5. 4. 5. 1.
StringReader class
5. 4. 6.
FileReader
5. 4. 6. 1.
FileReader class
5. 4. 7.
LineNumberReader
5. 4. 7. 1.
LineNumberReader class
5. 5.
Writer for Output
5. 5. 1.
Writer
5. 5. 2.
BufferedWriter
5. 5. 2. 1.
BufferedWriter class
5. 5. 3.
CharArrayWriter
5. 5. 3. 1.
CharArrayWriter class
5. 5. 4.
OutputStreamWriter
5. 5. 4. 1.
OutputStreamWriter class
5. 5. 5.
PrintWriter
5. 5. 5. 1.
PrintWriter class
5. 5. 6.
StringWriter
5. 5. 6. 1.
StringWriter class
5. 5. 7.
FileWriter
5. 5. 7. 1.
FileWriter class
6.
Reflection
6. 1.
Introduction
6. 1. 1.
What is Reflection
6. 2.
Class
6. 2. 1.
Class
6. 2. 2.
Get Class from class name
6. 2. 3.
Get class name
6. 2. 4.
Get constructors
6. 2. 5.
Get fields in this class
6. 2. 6.
Get Modifiers
6. 2. 7.
Get package
6. 2. 8.
Check class type
6. 2. 9.
Create new instance
6. 2. 10.
Convert class to string
6. 3.
Constructor
6. 3. 1.
Constructor
6. 3. 2.
Print out the contructors declared by String class with Reflection
6. 3. 3.
Create new instance by using its contructor
6. 4.
Field
6. 4. 1.
Field
6. 4. 2.
Get the field modifiers, name and type
6. 4. 3.
Get field value with Reflection
6. 4. 4.
Set field value with Reflection
6. 5.
Method
6. 5. 1.
Method
6. 5. 2.
Using reflection to print out all methods
6. 5. 3.
Invoke a method
6. 6.
Modifier
6. 6. 1.
Modifier
6. 7.
Package
6. 7. 1.
Package class
6. 7. 2.
Get package for a name
6. 7. 3.
Get all packages
6. 7. 4.
Get the annotations
6. 7. 5.
Get implementation title, vendor and version
6. 7. 6.
Get the package name
6. 7. 7.
Get the specification title, vendor and version
6. 7. 8.
Get the string representation of the Package
6. 8.
Array
6. 8. 1.
Array
6. 8. 2.
Get the length of an Array
6. 8. 3.
Get value from an Array
6. 8. 4.
Create new Array instance
6. 8. 5.
Set value to an Array
7.
Reference
7. 1.
OpenJDK
7. 1. 1.
Open JDK
Language Basics
»
w_w___w_.j_a__va___2___s.__c__o_m
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.