Four space indent, cuddled braces, wrap at about 130 columns:
public void methodName(String foo, String bar) {
if (foo.equals(bar)) {
System.out.println("Equals!");
} else {
System.out.println("Nope");
}
}
Otherwise just look around for examples when you have a question. There's a code style thing for Eclipse in the AS7 repository somewhere.