Java program to print a right angle triangle pattern program using for loop

Java program to print a right angle triangle pattern program using for loop. In the Java programming language, build a basic pattern program. To master any programming language, learn pattern programming. The pattern is printed in the first step of a complex level program written in a programming language. a decorative pattern that is replicated. In needlework and other crafts, a model or pattern is used as a reference.

public class Main
{
public static void main(String args[])
{
int i, j, row=7;
for(i=0; i<row; i++)
{
for(j=0; j<=i; j++)
{
System.out.print('*');
}
System.out.println();
}
}
}
*
* *
* * *
* * * *
* * * * *