For this Question: Give integer values M and N. Using the character ‘*’ draw a rectangle of height M and breadth N.The input contains two integers M and N.

Constraints:-
3 <= M, N <= 20Print the rectangle as shown in the exampleSample Input:-
3 3

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

Sample Input:-
5 3

Sample Output:-
***
* *
* *
* *
***, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
    public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int M=sc.nextInt();
        int N=sc.nextInt();
        for(int col=0;col<N;col++){
                System.out.print("*");
        }

        System.out.println();

        for(int row=0;row<M-2;row++){
            System.out.print("*");
            for(int col=0;col<N-2;col++){
                System.out.print(" ");
            }
             System.out.print("*");
             System.out.println();
        }




        for(int col=0;col<N;col++){
                System.out.print("*");
                }
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?