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.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.