Formatting conventions: Code Conventions for the Java Programming Language: Contents
Look at other threads with code on this forum. Many have code that is properly formatted.
Here's a sample:...
Type: Posts; User: Norm
Formatting conventions: Code Conventions for the Java Programming Language: Contents
Look at other threads with code on this forum. Many have code that is properly formatted.
Here's a sample:...
Is there a small, complete program you can post that can be compiled and executed for testing?
When you post code, be sure to properly format it. The code in post#3 needs formatting.
If the square is at an edge, will there be 8 squares to check?
Is the code supposed to check the 8 squares that surround a square in the middle of a 2 dim array?
Please edit the code and format it so that nested statements are indented 3-4 spaces. Statements should NOT all start in the first column.
Make a small complete program that compiles and executes...
Please explain what happens and what the problem is.