For this Question: You are given an integer n, you have to print a Increasing power of 2 pattern of size n.The first line contains a single Integer n.

<b>Constraints</b>
1 &le; n &le; 15Print Increasing power of 2 pattern of size n.Sample Input:
4

Sample Output:
*
** 
****
******** 

<b>Explanation</b>
2^0 = 1
2^1 = 2
2^2 = 4
2^3 = 8, I have written this Solution Code: import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        for(int i=1; i<=n; i++) {
            for(int j=1; j<=Math.pow(2, i-1); j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?