Что лучше и правильнее?
public void foo (Double a) {fn(0, 0, a, "foo"); }
public void foo (Double a, Integer b) {fn(0, b, a, "foo"); }
public void bar (Double a) {fn(a, 0, 0d, "bar"); }
public void bar (Double a, Integer b) {fn(a, b, 0d, "bar"); }
public void foobar(Double a, Integer b) {fn(a, b, a, "foobar");}
или
public void foo(Double a)
{
fn(0, 0, a, "foo");
}
public void foo(Double a, Integer b)
{
fn(0, b, a, "foo");
}
public void bar(Double a)
{
fn(a, 0, 0d, "bar");
}
public void bar(Double a, Integer b)
{
fn(a, b, 0d, "bar");
}
public void foobar(Double a, Integer b)
{
fn(a, b, a, "foobar");
}