Search:

Type: Posts; User: curmudgeon

Search: Search took 0.09 seconds.

  1. Thread: Structure

    by curmudgeon
    Replies
    8
    Views
    1,937

    Re: Structure

    Your braces appear to match, so that's good. As for code format, I'd indent the code within the blocks as well. I like to use 3 spaces (no tabs) since that works well with most forum formatters. For...
  2. Thread: Structure

    by curmudgeon
    Replies
    8
    Views
    1,937

    Re: Structure

    A constructor should be on the same indentation level as a method. Anything inside of a constructor or method should be indented at the next level. The format command in Eclipse won't work if your...
  3. Thread: Structure

    by curmudgeon
    Replies
    8
    Views
    1,937

    Re: Structure

    Your code with code tags:


    public class a
    {
    private String b;

    public a(String b) // your indentation here is not good
    {
    }
Results 1 to 3 of 3