java

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.

If, Else and Else If Statements

Submitted by GeePee on
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 true and else is for the opposite, what else do we need? To be able to check multiple times if certain conditions are true, but not the same.

Variables

Submitted by GeePee on
Introduction: Hello! This tutorial will teach you about variables. What are variables? Variables are pieces of data which are used to store more data. Every variable has a type, a name and a value; if the variable does not have a value then its value is 'null' or 'nothing'. What types can variables be? There are a few different types of variable, the most common ones being: - String - Double - Int (Integer) - Long - Boolean A string is a piece of text containing letters, numbers and symbols.

Methods and Constructors

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

Getting Started

Submitted by GeePee on
Introduction: This tutorial will help you get started with developing your own Java applications from scratch. Requirements: For developing Java applications you will need either an IDE (Integrated Development Environment) such as Eclipse which has it's own compiler built in which makes it easier for you to debug your program. Or, you can decide to use a Text Editor such as; Notepad, Notepad++ or Sublime then you will have to compile your .java files each time you would like to test your program.