Sorry, I'd rather you post it so everyone can see it.
Type: Posts; User: Norm
Sorry, I'd rather you post it so everyone can see it.
My editor doesn't fix it. Maybe if you use spaces not tabs in the source.
Not quite. There should never be three (or 2) }s in a column as at the end of the program. Each } should be inline below the statement with the matching {
if (path[0] == 0){
flag=false;...
It's hard to read and understand unformatted code. When the formatting is done properly, more people could try to read it. As it is now, many will wait until it is properly formatted before trying...
No, 3 vs 4 spaces doesn't make any difference. No spaces does make a difference.
In the class's definition only the first and last statement should start in the first column. All others should be indented. For example:
import java.util.Scanner;
public class Sequence {
...
The code needs to be properly formatted. Nested statements should be indented 3-4 spaces.
Too many statements start in the first column which makes it hard to read and understand the program's...