For this Question: Ralph likes to play with shapes, he chooses a number <b> n</b> of his choice and tries to make a special triangle shape out of it containing n rows.The input contains N as an input.

</b>Constraint:</b>
1 <b>&le;</b> N <b>&le;</b> 20Print a special triangle pattern of numbers of height N.Input:
5
Output:
<pre>
 
* 
* * 
* * * 
* * * * 
* * * * * 
* * * * 
* * * 
* * 
*

</pre>, I have written this Solution Code: import java.util.Scanner;
public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
      
 
        int rows = sc.nextInt();        
        for (int i= 0; i<= rows-1 ; i++)
        {
            for (int j=0; j<=i; j++) 
            { 
            System.out.print("*"+ " "); 
            } 
            System.out.println(""); 
            } 
            for (int i=rows-1; i>=0; i--)
        {
            for(int j=0; j <= i-1;j++)
            {
                System.out.print("*"+ " ");
            }
            System.out.println("");
        }
        sc.close();
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?