Java

Object Oriented Programming (Code)

Submitted by GeePee on
Introduction: Hello and welcome to a tutorial on Object Oriented Programming, with code examples as opposed to theory. Ready the theory page Before starting this page make sure you have read and understand the theory page which can be found here. Instances The use of OOP is to have multiple instances of one class running at the same time, each with it's own variables and methods.

Object Oriented Programming (Theory)

Submitted by GeePee on
Introduction: Welcome! This page will be explaining Object Oriented Programming with examples. The examples are theory only but a code example will be released soon (if not already). What is Object Oriented Programming? Object Oriented Programming (OOP) is commonly used in programs which require doing the same things over and over again. Much like a function or method can be ran multiple times, OOP classes can be ran multiple times, simultaneously. When is OOP used? OOP is used in games and some other software.

Setting Up JFrame/Program Window

Submitted by GeePee on
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.

Imports

Submitted by GeePee on
Introduction: This tutorial will teach you how to use Imports in Java. What are imports? Imports are very important... see what I did there?... *sigh* Most programming languages, including Java, are very 'lazy' and will only get the information for classes it knows it will need or is directly referenced.

ArrayLists

Submitted by GeePee on
Introduction: Welcome! This tutorial will teach you about how to create and use ArrayLists. What are ArrayLists? ArrayLists, normally referred to as just Arrays, is a type which can contain multiple items. For example; a shopping list could be referred to as an array or shopping items. ArrayLists must be made up of one type only. You are unable to mix and match different types within one ArrayList such as String and Integer.

For Loops

Submitted by GeePee on
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

Submitted by GeePee on
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.