Java newbie here; I'm far more comfortable in C#. That said, the following puzzles me. I'm writing some overloaded classes with different parameter signatures in Java. However, it can't seem to distinguish between Object and double. However, it has no problem with Object and Double. Can someone explain what's going on?
public void item(Object a, Object b, String c, String d) {/*Stuff*/}
public void item(double a, double b, String c, String d) {/*Stuff*/}
public void UseIt(double a, double b, Double c, Double d)
{
item(a, b, someString, someOtherString); // Claims it's ambiguous
}
or is this just a case of my development system being idiotic?
Sorry about the example; it is like the ones that failed (which I can't really put here), and I made the mistake of not trying it before typing it in...