For this Question: Given an integer N, you have to print the given below pattern for N &ge; 3.
<b>Example</b>
Pattern for N = 4
*
*^*
*^^*
*****<b>User Task</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>Pattern()</b> that takes integers N as an argument.

<b>Constraints</b>
3 &le; N &le; 100Print the given pattern for size N.<b>Sample Input 1</b>
3
<b>Sample Output 1</b>
*
*^*
****

<b>Sample Input 2</b>
6
<b>Sample Output 2</b>
*
*^*
*^^*
*^^^*
*^^^^*
*******, I have written this Solution Code: static	void Pattern(int N){
System.out.println('*');
for(int i=0;i<N-2;i++){
    System.out.print('*');
    for(int j=0;j<=i;j++){
        System.out.print('^');
    }System.out.println('*');
}
for(int i=0;i<=N;i++){
System.out.print('*');
}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?