how can i create this pattern in a java loop with the use of input. for example input is x = 5 y = 6. this will be the output.
*****
* *
* *
* *
* *
*****
I've tried different code but it gets me to full block of asterisk i just want a rectangle that is blank inside.
*****
*****
*****
*****
*****
*****
please help. thank you so much.