Java is divided into three systems:

JavaSE (J2SE) (Java2 Platform Standard Edition, java platform standard edition)

JavaEE (J2EE) (Java 2 Platform, Enterprise Edition) , java platform Enterprise Edition)

JavaME (J2ME) (Java 2 Platform Micro Edition, java platform micro edition).

Java loop structure syntax

Program statements in a sequential structure can only be executed once. If you want to perform the same operation multiple times, you need to use a loop structure.

There are three main loop structures in Java:

while loop

do...while loop

for loop

Java loop structure example

public class Test {
   public static void main(String args[]) {
      int x = 10;      while( x < 20 ) {
         System.out.print("value of x : " + x );         
                x++;         
                System.out.print("\n");      
                }
   }}