Example

Setting Up JFrame/Program Window

Introduction: Hello. This page will teach you how to use JFrames within Java. What is a JFrame? A JFrame is a Java component which is able to hold or contain multiple more components. The JFrame is the 'window' of the program (the outer part which has the re-size options, the minimize, maximize and close options as well as the title of the program and icon). Should I use a JFrame in my program? You should only use a JFrame if you need a GUI/UI in your program.

For Loops

Introduction: This page will teach you about the For loop in Java. What is the for loop? The for loop is very useful in many programming languages. It is a simple way to re-run a certain script or part of code multiple times depending on integer values. How do I create a for loop? First you will need to decide five things to create your for loop: 1. The variable name, this will be the reference of integer within the loop. 2. The starting value. 3. The ending value. 4. What will happen for each time the script loops. 5.

Assignment + Equality and Relational Operators

Introduction: Welcome! This page will teach you about Equality and Relational Operators as well as the Assignment Operator. What is an Operator? Operators within Java are signs used to manipulate a variable. Depending on what type of Operator is in use will determine the outcome. What is an Equality and Relational Operator? Equality and Relational Operators are used to check if a variable is a value.

Methods and Constructors

Introduction: Welcome, this tutorial will teach you about Constructors and Methods in Java. What is a 'Method'? A method is a block of script which performs for a purpose. The use of methods is to avoid re-writing the same scripts over and over again because instead, you are able to use the same method every time you need to run that particular script. Methods normally return a value once ran but can run without returning anything. Methods can be custom created by the programmer or they can be built in to Java...