Skip to content

Instantly share code, notes, and snippets.

@moomdate
Last active September 23, 2017 14:03
Show Gist options
  • Save moomdate/87bda6a5da061bc62608b1a5bf8c2059 to your computer and use it in GitHub Desktop.
Save moomdate/87bda6a5da061bc62608b1a5bf8c2059 to your computer and use it in GitHub Desktop.
gg
for(int i = 0; i < data; i++){
for(int j = 0; j < data; j++){
if(!(j<2 || i<2 || i>=data-2 || j>=data-2)){
System.out.print(" X");
}else{
System.out.print(" ");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment