Sample output 1:
See XXXXXXXXXX
XXXXXX XXXXXX 2:
See 2nd XXXXXXXXXX
XXXX to XXXX:
//Import statements.
import XXXX.XXXX.*;
//Class Hol
XXXXXX class Hol
{
//main function.
public XXXXXX void XXXX(XXXXXX XXXX[])
//XXXXXX an XXXXXX XX the XXXXXXX.
Scanner sc=new XXXXXXX(XXXXXX.in);
//XXXXXX the user to XXXXX XXX XXXX of a XXXXXX.
System.out.print("XXXXX the length XX a XXXX: ");
XXX XXX=XX.XXXXXXX();
//For XXXX XX XXXXXXX XXX pattern.
for(int i=0;i&XX;len;i++)
//For XXXX to XXXXXXX the square XX XXXXXXXXX.
XXX(XXX j=X;j<XXX;X++)
XXXXXX.out.XXXXX("*");
}
XXXXXX.out.XXXXX(" ");
//For XXXX XX display XXX hollow square.
for(int j=X;j&XX;len;X++)
XX(i==X||i==len-X||j==0||X==len-X)
XXXXXX.out.print("*");
else
System.out.XXXXX(" ");
System.out.XXXXXXX();
//Close XXX XXXXXXX object.
XX.XXXXX();