Sample output 1:
See XXXXXXXXXX
Sample output 2:
See XXX XXXXXXXXXX
XXXX XX copy:
//XXXXXX XXXXXXXXXX.
XXXXXX java.XXXX.*;
//Class XXX
XXXXXX class XXX
{
//main function.
public static void XXXX(String args[])
//Create an XXXXXX XX XXX scanner.
Scanner XX=XXX XXXXXXX(System.in);
//Prompt the XXXX XX enter the XXXX XX a XXXXXX.
System.out.XXXXX("Enter the length XX a side: ");
int XXX=sc.nextInt();
//XXX loop XX display the pattern.
for(int i=0;i&XX;XXX;i++)
//For XXXX to XXXXXXX XXX square XX XXXXXXXXX.
for(XXX j=0;j<XXX;j++)
System.out.print("*");
}
System.out.print(" ");
//XXX loop XX display XXX hollow XXXXXX.
for(int X=0;j<XXX;j++)
if(i==X||i==len-X||j==0||X==len-X)
XXXX
XXXXXX.out.print(" ");
XXXXXX.out.XXXXXXX();
//Close XXX scanner object.
XX.XXXXX();