Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    Sorry, I'd rather you post it so everyone can see it.
  2. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    My editor doesn't fix it. Maybe if you use spaces not tabs in the source.
  3. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    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;...
  4. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    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...
  5. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    No, 3 vs 4 spaces doesn't make any difference. No spaces does make a difference.
  6. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    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 {
    ...
  7. Thread: sequences help

    by Norm
    Replies
    14
    Views
    989

    Re: sequences help

    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...
Results 1 to 7 of 7