java

Submitted by: 
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. For the...
Submitted by: 
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,...
Submitted by: 
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?...
Submitted by: 
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. So, if we want to use a method from a class which is in a custom package/location or a Java...
Submitted by: 
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...
Submitted by: 
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...
Submitted by: 
Introduction: Welcome to your last tutorial on Operators. The Operators we will be learning about today are Type Comparison and Conditionals. What are Conditional Operators? Condition Operators are used within if statements are are used to determine if multiple conditions are true, to check if one OR another condition is true and the final Conditional Operators is a shorthand version of the if...
Submitted by: 
Introduction: Hello, this page will teach you about another two types of Operators in Java, Arithmetic and Unary. Arithmetic Operators - What are they? Arithmetic Operators are symbols used to perform a mathematical sum. There are five types of these: + Add - Subtract / Division * Multiplication % Modular/Remainder All of these operators have clear uses for anyone with basic knowledge of Math...
Submitted by: 
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...
Submitted by: 
Introduction: Hello. In this tutorial you will learn about the if, else and else if statements. When are these statements used? The if statement is used to check if certain conditions are true. For example, just like we would say in English, if the time of day is noon we should eat lunch, else we shouldn't. So, what is else if? Since the if statement is used to check if certain conditions are...

Pages