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...
Type: Posts; User: curmudgeon
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...
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...
Your code with code tags:
public class a
{
private String b;
public a(String b) // your indentation here is not good
{
}