Start learning Java now

Knowledge is everything, once you fully understand Java, you should pass on what you have learned

The Switch Statement

The versatile switch statement is an alternative to the 'if' statement and has many possible executions. Along with some complex data types, the switch statement can be expressed with the int, short, byte or char primitive data types, and since Java 7, it works with the String class.

Reading Text Files

In all programming languages, it is important to remain efficient when reading through its own code. The longer the code, the more time that the program needs to read through it. In this tutorial I will attempt to explain why importing files from outside of the program is useful.

Data types

When creating variables in Java, it is important to define it type. For example a number has to be defined with one of six different types. In this post I will attempt to explain the different types and provide exampled of their use.

Defining Strings

There are many Java String methods, in this post we will attempt to cover the main String Class and also some of the most used String methods.

For Loops!

In programming, the for statement is known as an iterator, which is a fancy way of saying something that repeats a procedure. It is commonly referred to as a 'for loop' because it does just that, it loops. The for loop creates a space in a program where code written within the curly braces in the body of the statement will repeat until a certain condition is met.

What is an array?

In programs, you will have to store a large amounts of variables to manipulate. Arrays are a method of storing such variables; the key to arrays is that you store large variables in a single collection which you can manipulate! It will make your programming much more efficient and It’s useful to learn and practice arrays to use to your advantage!