JAVA (basic) part 1

Installing JDK (Java Development Kit)

1. sun.java.com
2. Download JDK 6 Update 12 with JavaFX SDK
3. Create Path
4. Source C:\Program Files\Java\jdk1.6.0_12\bin
5. Tab Advanced > Envoronment Variables
6. Variable name = Path + Variable value = C:\Program Files\Java\jdk1.6.0_12\bin
7. Open “Command Prompt” > javac

Hello Ide Web

Variables

Getting User Input

Building a Basic Calculator

Match Operator

Increment Operator

If Statement

Logical Operators

Switch Statement

While Loop

Using Multiple Classes
1. apples.java (class apples)
2. tuna.java (class tuna)

Use Methods with Parameters
1. apples.java (class apples)
2. tuna.java (class tuna)

Many Methods with Parameters
1. apples.java (class apples)
2. tuna.java (class tuna)

Constructors
1. apples.java (class apples)
2. tuna.java (class tuna)

Nested if Statements

Else If Statements

Conditional Operators

Simple Averaging Program

For Loops

Compound Interest Program

Do While Loops

Math Class Methods

Random Number Generator

Introduction to Arrays

Creating an Array Table

Summing Elements of Arrays

Array Elements as Counters

Enhanced for Loop

Arrays in Methods

Multidimensional Arrays

Table for Multi Arrays

Variable Length Arguments

Time Class
1. tuna.java (class tuna)
2. apples.java (class apples)

Display Regular time
1. tuna.java (class tuna)
2. apples.java (class apples)

Public, Private and this
1. tuna.java (class tuna)
2. apples.java (class apples)

Multiple Constructors

Set and Get Methods

Building Objects for Constructors
1. tuna.java (class tuna)
2. apples.java (class apples)

Enumeration