Java Contents Page

This free Home and Learn course is for those wishing to learn the Java programming language. It is aimed at complete beginners to the subject, and no knowledge is assumed. The software you need to do the course is set out below, in the "What you need to get started" link. Once you have downloaded everything you need, you can make start by following the links on this page. Good luck!

Section One: Getting Started with Java  

1. What you need to get started

2. The Netbeans Software

3. Java Comments

4. The Structure of Java Code

5. How to Run your Java Programmes

6. Printing to the Output Window

7. Sharing your programmes with others

Section 2: Variables  

1. Integer Variables in Java

2. Double Variables

3. Short and Float

4. Operator_Precedence

5. Java String Variables

6. Getting Input from the User

7. Option Panes

Section 3: Control Flow  

1. If Statements in Java

2. If Else Statements

3. Boolean Values

4. Switch Statements

5. Java for Loops

6. Java While Loops

Section 4: Arrays in Java  

1. Java Arrays

2. Arrays and Loops

3. Sorting Arrays

4. Arrays and Strings

5. Multi-Dimensional Arrays

6. Array Lists

Section 5: Java String Methods  

1. Java and Strings

2. Upper and LowerCase

3. The compare Method

4. The indexOf Method

5. The substring Method

6. The equals Method

7. The charAt Method

8. The replace Method

9. Printing Formatted Strings

Section 6: Java Methods  

1. Java Methods

2. Calling your Java Methods

3. Passing Values to Methods

4. Mutliple Method Parameters

Section 7: Java Classes  

1. Writing your own Java Classes

2. Field Variables

3. The Java Class Constructor

4. Accessing Class Variables

5. More on Java Class Methods

6. Java and Inheritance

Section 8: Java Error Handling  

1. Error Handling and Excpetions

2. Stack Trace

3. Handling Logic Errors in Java

Section 9; Dealing with Text Files in Java  

1. Open and Read a Text File in Java

2. Write to a Text File in Java

Section 10: A Java Calculator Project  

1. Java Forms

2. The Different Form Views in NetBeans

3. Add a Text Box to a Java Form

4. Add a Button to the Form

5. Button Properties

6. Java Form Events

7. Coding for the Plus Button

8. Coding for the Equals Button

9. Coding for the Clear Button

10. Subtract, Divide, Multiply Buttons

Section 11: More Java Form Controls  

1. Java and Combo Boxes

2. Java Check Boxes

3. Radio Buttons

4. Adding Menus to a Java Form

5. Open File Dialogue Boxes

6. Opening Files

7. Save File Dialogue Boxes

Section 12: Java and Databases  

1. Java and Databases

2. Creating a Database with Java

3. Adding Records to Table

4. SQL Commands

5. Connect to a Database with Java code

6. Connecting to the Table

Section 13: Databases and Java Forms  

1. Databases and Java Forms

2. Database Scrolling Buttons

3. Move Back Through the Database

4. Move to the First and Last Records

5. Update a Record

6. Add a New Record

7. Save a New Record

8. Delete a Record from a Database