Below are guides to help you with your Java programming. They are all easy to understand with clear and complete examples.
Creating and using fixed length arrays. Find out how combining them with for loops can make your programs easier to understand! The example is creating an array of lottery numbers.
How to use Java's ArrayLists. These are dynamic arrays that you can add and remove items to. Like arrays, they can help simplify your code. The example is creating and adding to a list of planets.
Methods (sometimes called functions) are self contained blocks of code that can help with organisation and code reuse. A method can be called multiple times reducing code duplication. The example shows a method to calculate the area of a rectangle.
Strings are one of the most commonly used data types, learn how to create and use them effectively! The example demonstrates creating and modifying strings.
Splitting Strings is very useful, this page shows how to split a string of numbers and add them together. It also shows how to convert a String to a number and how an exception is raised if it fails.
Find out how to use StringBuilder to join Strings faster and more efficiently. The example shows timings between joining Strings using the '+' and with StringBuilder. The StringBuilder method can be up to 100x faster!
Getting typed input from the user, also find out how to convert Strings to numbers. The example gets the age of the user and works out the year they were (probably) born in.
Updated (06/05/2025)