Learn phrases, commands, and blocks in Java (plain language)

In this tutorial, you will learn about expressions, statements, blocks, and the difference between a phrase and a commands.  We used phrases, commands, and blocks in previous tutorials without going into too much detail about…

Learning comments in Java (in quite simple language)

In programming, comments are considered part of the program that are used to understand the code and are completely ignored and not executed by Java compilers. In the Java programming language, there are two types…

Complete tutorial on if and if else commands in Java (in simple language)

In programming, it is often desirable to execute a certain piece of code based on whether the specified condition is true or false (which is specified only at runtime). For such cases, control flow commands…

Learn how to switch in Java (in very simple language)

In this tutorial you will learn to use the switch command to control the flow of your program. In Java, the if..else..if ladder executes code from many blocks.  The switch command can replace long ladders that…

Learn loop for in Java (in quite simple language)

Loops are used in programming to repeat a specific block of code. In this tutorial, you can create a for loop in Java programming.  The loop is used in programming to repeat a specific block of…

Tutorial for… each loop in Java (in very simple language)

If you are working with arrays and sets, you can use another for loop structure (advanced for loop form) to duplicate their items. This type of loop is called for-each because the loop is repeated through…

Tutorial for while and do… while loops in Java (in simple language)

Loops are used in programming to repeat a specific block of code. In this tutorial, you will learn to use the while and do… while loops in Java programming. Repeat a loop until a certain condition…

Learn how to break in Java (in very simple language)

Suppose you are working with circles. Sometimes you need to skip some commands inside the loop or end the loop immediately without checking the condition. In such cases, break and continue commands are used. The break statement…

Learn the continue commands in Java (in quite simple language)

Suppose you are working with circles. Sometimes you want to skip some commands inside the loop or end the loop immediately without checking the condition. In such cases, the terms break and continue are used. The…

Learn the basics of arrays in Java (in very simple language)

In this tutorial you will learn how to work with arrays in Java; Define, initialize, and access elements with examples. An array is a container that holds data (values) of a single type.  For example, you…