Garmaine Staff asked 1 year ago

My question is two-part.

  1. Why does the following work fine in Eclipse? Isn't "Double" a class?
    Double h = 2.5;
    double j = 2;
  1. Why does "Double" above give me an error when I don't assign a decimal value to it, but "double" is fine whether or not I assign a decimal value to it?