Sample output 1:
XXX attachment
Sample XXXXXX 2:
XXX 2nd attachment
Code XX copy:
//XXXXXX XXXXXXXXXX.
XXXXXX XXXX.util.*;
//XXXXX XXX
public class Hol
{
//XXXX XXXXXXXX.
XXXXXX static XXXX XXXX(String XXXX[])
//XXXXXX an XXXXXX to XXX scanner.
Scanner sc=new Scanner(System.in);
//XXXXXX XXX XXXX to XXXXX XXX side of a square.
XXXXXX.out.print("XXXXX the length of a XXXX: ");
XXX len=sc.nextInt();
//For XXXX to display the XXXXXXX.
XXX(int i=0;i<len;i++)
//XXX loop XX display the square of asterisks.
XXX(XXX X=0;j<XXX;j++)
System.out.print("*");
}
XXXXXX.out.print(" ");
//XXX XXXX XX XXXXXXX the XXXXXX XXXXXX.
XXX(XXX X=0;j&XX;len;X++)
XX(i==X||i==XXX-1||X==X||X==len-1)
System.out.XXXXX("*");
XXXX
System.out.XXXXXXX();
//Close XXX XXXXXXX XXXXXX.
sc.XXXXX();