Java program to print reverse right-angled triangle of numbers

Java program to print reverse right-angled triangle of numbers. In the Java programming language, build a low-facing pattern application. This software will print the pattern with an asterisk at the bottom. In a pattern program for beginners in the Java programming language, print the asterisk downwards.

public class Main 
{ 
public static void main(String[] args) 
{ 
int rows=5; 
for (int i= rows-1; i>=0 ; i--) 
{ 
for (int j=0; j<=i; j++) 
{ 
System.out.print("*" + " "); 
} 
System.out.println(); 
} 
} 
} 

Output:

* * * * *                                                                                                                                                

* * * *                                                                                                                                                  

* * *                                                                                                                                                    

* *